Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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?

  • Verified answer
    Expiscornovus Profile Picture
    32,131 Most Valuable Professional on at
    Re: div function not working when dividend is less than divisor

    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1