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 / Convert String to Deci...
Power Automate
Unanswered

Convert String to Decimal Number in Power Automate Flow

(0) ShareShare
ReportReport
Posted on by

Hi All.

 

My requirement is to convert string numbers to decimal numbers in Power Automate flow, Is there any way to do this? Please Help me! 

I tried with the value() function it works in Power Apps and not in Power Automate.

Thanks,

@Anonymous 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Anonymous 

     

    Pls use float function. 

     

    As an example, float('5.0') will convert string 5.0 to decimal number.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • eizk Profile Picture
    6 on at

    Hi,

    I have file names (string) as such which I used split function to get the numbers using ' ' as separator. However using float or decimal function will only output the number up to 1 decimal place.

     

    1. 1.0 xxxx

    2. 1.1 xxxx

    3. 1.10 xxxx

    4. 1.12 xxxx

     

    eizk_0-1708397811124.png

     

    Cant seem to work with format number from strings too.

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @eizk 

     

    You could use formatNumber function to get 2 decimal places:

    formatNumber(float(first(split('1.1 xxxx',' '))),'#.00')

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • eizk Profile Picture
    6 on at

    I got the answer now. 1.10 is just 1.1. I would recommend naming the file to x.01 instead of x.1.

    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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard