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 / Power Autome Cloud - c...
Power Automate
Unanswered

Power Autome Cloud - converting to float

(0) ShareShare
ReportReport
Posted on by 2

Hi, I'm using a flow where I get a data from AI from pdf file where theorically I get a number using this expression: 

replace(replace(replace(replace(outputs('Extract_information_from_forms')?['body/responsev2/predictionOutput/labels/Total/value'],',',''),'.',''), ' ',''),'$','')
and then y fill in Excel the numbers (yellow highlighted)
 
loparque1_0-1669925953256.png

If I envolve this formula in IsFloat(myexpression) I get TRUE as values

 

loparque1_1-1669926165975.png

 

 

But, when I try divide by 100 with this formula 

div(replace(replace(replace(replace(outputs('Extract_information_from_forms')?['body/responsev2/predictionOutput/labels/Total/value'],',',''),'.',''), ' ',''),'$',''),100) I don't get syntax error but the flow finally give me an error and the data does not finish in the Excel
loparque1_2-1669926210947.png

 

What am I doing wrong?

regards

 

Categories:
I have the same question (0)
  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @loparque1 ,

     

    The first parameter required by isFloat() is string, so it can successfully return true, but the first parameter required by div() is integer or float. So, your expression cannot be used as the first parameter of div(). You need to convert it with float().

    vdezhilimsft_0-1669958742458.png

     

    vdezhilimsft_1-1669958742460.png

     

    vdezhilimsft_2-1669958742461.png

     

    vdezhilimsft_3-1669958742462.png

     

    vdezhilimsft_4-1669958742463.png

     

    Best Regards,

    Dezhi

  • loparque Profile Picture
    2 on at

    Dezhi, thanks a lot!! It works!

    My error was isFloat() returned True if the parameter is a float, not a string. I found the url with functions documentation now to learn about all the functions!!

    Thanks again!

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard