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

Announcements

News and Announcements icon
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 Microsoft Employee

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)
  • Manish Solanki Profile Picture
    15,167 Moderator 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.

  • Manish Solanki Profile Picture
    15,167 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard