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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Getting rid of zeros after the decimal

(0) ShareShare
ReportReport
Posted on by 160

I have a field, Days Change_Ship, that performs a calculation as you can see below. I use the calculation to display it on an email. The issue is that on the list it display as an integer, as you see below, but when I display it on an email it comes out with multiple zeros after the decimal. How can I remove all the zeros so that its only an integer?

 

Days Change_Ship Formula:

alopez222_0-1648229246160.png

 

Days Change_Ship on List:

alopez222_1-1648229313174.png

 

Email:

alopez222_2-1648229463148.png

 

 

 

I have the same question (2)
  • Verified answer
    Barret Profile Picture
    652 Most Valuable Professional on at
    Re: Getting rid of zeros after the decimal

    There is a Format Number action in Power Automate that you can use, then reference the output of that action in your email action. See Here.  

     

    You can also format the number inline in a few other ways. This guide has a number of different examples.

  • alopez222 Profile Picture
    160 on at
    Re: Getting rid of zeros after the decimal

    I used the Format Number action as seen in the picture below. After testing it, I got an error, seen below, saying that I entered the wrong data type. I entered a string when I should have entered an integer or decimal. When I go to the field settings to see what the data type is, I see that it is a number data type. Unless I'm not understanding something, I don't see what I am doing wrong. 

     

    Error:

    alopez222_0-1649087735918.png

     

    Field Data Type:

    alopez222_1-1649087770971.png

     

    Format Number Action:

     

    alopez222_2-1649087822615.png

     

     

  • Barret Profile Picture
    652 Most Valuable Professional on at
    Re: Getting rid of zeros after the decimal

    Can you look at the output data from an example run from your action that is returning the data to your flow? Look at the raw JSON data that is in the response and an example of the Days_Change_Ship that is being returned. Ensure that the data isn't surrounded by quotation marks in the output. Just because your field is defined as a number doesn't necessarily mean it is being returned to your flow as a number in the JSON reponse. 

  • alopez222 Profile Picture
    160 on at
    Re: Getting rid of zeros after the decimal

    I didn't realize I was testing it wrong. I got the correct output but it wasn't the one I was expecting. My input was wrong. 

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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard