Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 22o35Mh7LATXcVoSvBECJc
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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started