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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Float Error Converting...
Power Automate
Answered

Float Error Converting Number to Currency

(0) ShareShare
ReportReport
Posted on by 237

Hi,

 

In an email that gets sent from my power automate workflow, there is a dollar amount. Right now it shows without the $.00 and I need the number to be in currency format. Right now I used the expression:

formatNumber(float(outputs('Update_item_-_CFOSubmitFlag_to_NO')?['body/PerDiemMealTotal']), '$0.00')

however, when this field is blank, an error is thrown. How can I fix this expression to account for a blank value?

Categories:
I have the same question (0)
  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Hi @NPatel12498 

     

    Try:

    if(
     equals(outputs('Update_item_-_CFOSubmitFlag_to_NO')?['body/PerDiemMealTotal'], null),
     0,
     formatNumber(float(outputs('Update_item_-_CFOSubmitFlag_to_NO')?['body/PerDiemMealTotal']), '$0.00')
    )

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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard