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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / div function not worki...
Power Automate
Unanswered

div function not working when dividend is less than divisor

(0) ShareShare
ReportReport
Posted on by 73

Hi,

 

div(dividend: number, divisor: number)

 

In my case, dividend number is 4 and and divisor is 8. The expected result value is 0.5, but PA is returning 0 (zero). Is there any reason or is it a bug ? I'm using both values in variables

Here is the expression I used.


div(int(outputs('Total_projects')),int(outputs('project_committed_one')))

The function is working fine if the dividend value is greater than divisor. 

Can you please guide here?

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,183 Most Valuable Professional on at

    Hi @Niraj466,


    Try using a float instead of an int function. This should return 0.5.

     

    Try this expression instead:

     

    div(float(outputs('Total_projects')),float(outputs('project_committed_one')))

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard