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 / Zero value not displaying
Power Automate
Answered

Zero value not displaying

(0) ShareShare
ReportReport
Posted on by 196

Hello,

Read a few articles on this issue but none resolve it. How do I add the zero on after the 7 in total price? it should go to two decimal places.

 

rosscortb_0-1673947195891.png

 

rosscortb_1-1673947222309.png

 

Code I am using against price is

 

If(empty(item()?['Total_x0020_Price']),null,concat('£',float(item()?['Total_x0020_Price'],'en-uk')))

 

Thanks

Ross

Categories:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @rosscortb ,

    Please try:

    If(empty(item()?['Total_x0020_Price']),null,concat('£',formatNumber(float(item()?['Total_x0020_Price'],'en-uk'),'C2','en-US')))

     

     

    Best Regards

    Cheng Feng

  • rosscortb Profile Picture
    196 on at

    @v-chengfen-msft 

     

    Thanks, get the zero showing but in dollars changed last bit to en-uk but get this now?

    rosscortb_0-1673950395584.png

     

  • Verified answer
    Chriddle Profile Picture
    8,640 Super User 2026 Season 1 on at

    'en-uk' simply is not a valid locale.

    Don't concatenate the Pund character into the string! This is already done with the 'C2' param.

    Simply use:

     

    formatNumber(12.8,'C2', 'en-GB')

     

      outputs '£12.80'

  • rosscortb Profile Picture
    196 on at

    @v-chengfen-msft @Chriddle 

    Thanks both for your help. Got it working. Cheers

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard