Skip to main content

Notifications

Community site session details

Community site session details

Session Id : eRU6iWOm7QfMkmrdIJP1rh
Power Automate - General Discussion
Unanswered

Convert String to Decimal Number in Power Automate Flow

Like (0) ShareShare
ReportReport
Posted on 4 Oct 2023 05:22:38 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 

  • eizk Profile Picture
    6 on 20 Feb 2024 at 03:12:12
    Re: Convert String to Decimal Number in Power Automate Flow

    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.

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on 20 Feb 2024 at 03:07:52
    Re: Convert String to Decimal Number in Power Automate Flow

    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 20 Feb 2024 at 02:57:57
    Re: Convert String to Decimal Number in Power Automate Flow

    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,085 Super User 2025 Season 1 on 04 Oct 2023 at 05:36:49
    Re: Convert String to Decimal Number in Power Automate Flow

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
Pstork1 Profile Picture

Pstork1 18 Most Valuable Professional

#2
rpersad Profile Picture

rpersad 16

#3
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

Overall leaderboard