web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to receive decimal...
Power Automate
Answered

How to receive decimal number result after dividing

(0) ShareShare
ReportReport
Posted on by 15

hi all,

 

probably silly question, but can someone please guide me how can I receive a result in decimal number after dividing two numbers? I am always getting result in whole number. Formula looks like this:

 

div(int(variables('Recharge')),43300)
 
Thank you for any advice
Lukas
Categories:
  • Verified answer
    ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @lamacz:

     

    How are you using the result?  Is it going into a variable?  If so, what is the data type of the variable.

     

    Here is an example that shows getting a decimal output:

     

    Int1.jpgInt2.jpgInt3.jpg

     

    Scott

  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @lamacz,

     

    Have your problem be solved refer to @ScottShearer 's solution?

     

    As @ScottShearer 's solution, you could convert the int value to float value, then you could get the float result after div.

     

    The screensho of the flow as below:

    Capture.PNG

     

    The expression in the Compose as below:

    div(variables('Recharge'),float(43300))

    The flow would run successfully as below:

    Capture.PNG

     

    Best regards,

    Alice

     

  • lamacz Profile Picture
    15 on at

    hi both,

     

    it was a truly silly qustion, yours solutions are working. I was incorrectly using integer type of variable to store results. 

     

    Many thanks

    Lukas

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard