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 / Remove the zero's from...
Power Automate
Unanswered

Remove the zero's from a number stored in a variable

(0) ShareShare
ReportReport
Posted on by 1,042

Dear experts,

I have a  variable called "InputC" that contains a number 00012345. Now before i pass the variable to the get-items connector I want to remove the zero's. I know i have to use the float. But i am very bad in expressions.

PeKi72_0-1669836500332.png

 

Gr.P

Categories:
I have the same question (0)
  • Verified answer
    Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    Hey there.  You've got it....  if you just wrap the output of your variable in a float(), it will have the desired result.  Something like this in your expression window (replace the bold bit with the dynamic output of your variable:  

     

    float(variables('varTest'))
     
    Good work!  Keep us posted.
    -Ed
     

    If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard