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 / Numbers showing with 1...
Power Automate
Unanswered

Numbers showing with 10 decimal places

(0) ShareShare
ReportReport
Posted on by 24

Hi,

I'm passing float values through from Dynamics to an Email record.  They should be coming through with 2 decimal places (that is what the decimal is set to in the field in Dynamics), but they are coming through with 10 decimal places.

I've tried setting a number format for one of the values but it is still coming through with 10dps.   Short of converting them to strings 

 

I'm stumped!

2022-04-15_08h40_13.png2022-04-15_08h46_03.png2022-04-15_08h50_51.png

Categories:
  • Ellis Karim Profile Picture
    12,336 Super User 2026 Season 2 on at

    Hi @simonsnell ,

     

    Your format number function appear to be correct. You need to use the output of the format number function in your table or email:

    Snag_4188d42.png

     

    ekarim2020_0-1650014145666.png

     

    Here is another example. The second format number function below, C2, was entered as a custom value value, but both are exactly the same:

    Snag_412c576.png

    See Reference guide for expression functions - Azure Logic Apps | Microsoft Docs | formatNumber

     

    Hope this helps.


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • simonsnell Profile Picture
    24 on at

    Thanks for your suggestion.  Here is what I tried, and here is the result:-

    simonsnell_0-1650107148472.pngsimonsnell_1-1650107161892.png

    Here is the result from the flow:-

    simonsnell_3-1650107256450.png

    Unfortunately although I'm passing the value from the formatted number, it still appears with all the zeros.

    simonsnell_4-1650107302143.png

     

    I suspect that the issue is that when it is passed to our email template system (ClickDimensions), it is the raw data without the formatting, so the zeros get added automatically.

     

    Any further ideas?

  • Ellis Karim Profile Picture
    12,336 Super User 2026 Season 2 on at

    Can you try one of the default formats:

    2022-04-16_19-38-59.gif

    Snag_91570.png

    We can also use an expression to convert the number format:

    formatNumber(variables('TotalVouchers'),'C2', 'en-GB')

    ekarim2020_2-1650134938999.png

    Does the above fix the issue?

     

    Ellis

  • simonsnell Profile Picture
    24 on at

    Hi 

    Thanks.  I think the fundamental issue was that I was passing these through a "decimal" field, rather than a string.  I'm trying it now with a string field.

    This works with the Currency (C2) format as suggested.

    Thank you

     

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
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard