cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

Absolute numbers?

Hello,

How do I get the absolute value of a number?

Example:

sub(10,11)

Which equals -1. I need to get the absolute value of 1 from this statement. 
How can this be accomplished?
Thank you 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Absolute numbers?

Hi @ericonline,

 

Unfortunately, there is no ABS function exist in Power Automate, as a workaround, you can determine it is whether less than 0, if it is, convert it to a string, then remove the "-" character, then convert it into an integer, for example:Annotation 2019-12-10 131824.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Absolute numbers?

Hi @ericonline,

 

Unfortunately, there is no ABS function exist in Power Automate, as a workaround, you can determine it is whether less than 0, if it is, convert it to a string, then remove the "-" character, then convert it into an integer, for example:Annotation 2019-12-10 131824.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Coming Soon: T-shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors
Users online (6,404)