Skip to main content
Community site session details

Community site session details

Session Id : 4kB3hVVmn4xJOqDfvIxB7m
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 2 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 2 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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2