Live training: next batches coming soon. Join the waitlist:Waitlists open:Developer Training →Developer →Copilot Studio Training →Copilot Studio →

How to Convert Float to Integer in Power Automate?

There will be times when you are required to convert a float to integer in Power Automate. In this Power Automate tutorial, we will see how to convert float to integer in Power Automate. So, here we will cover the below topics:

  • Convert float to an integer using the Format Number action in Power Automate
  • Convert float to an integer using formatNumber() in Power Automate
  • Dynamically converts a float to an integer in Power Automate

Convert float to an integer using Format Number action in Power Automate

Here, we will see how to convert float to an integer using the Format Number action in Power Automate flow.

We will create an Instant cloud flow, initialize a float variable, and convert float to an integer using Format number action.

1. Open Power Automate Cloud, then click on the +Create icon -> select Instant Cloud flow.

power automate convert float to integer

2. Provide the flow name and select Manually trigger a flow. Then click on Create.

Power Automate float to int

Now, you can see the, “Manually trigger a flow” action is added to the flow page.

convert float to int in microsoft power automate

3. Next, we will initialize a float variable, for this, click on the +New step -> select the Initialize variable action and then provide the below information

  • Name: Provide the variable name
  • Type: Select the type as float
  • Value: Provide the float number like the below image.
power automate convert float to integer

4. Now we will convert the float number to integer, so click on the +New step -> select Format number action, and then provide the below information

  • Number: Select the variable from the dynamic content
  • Format Provide the format as ‘#’ or ‘N0’
How to convert float to int in power automate

5. Now run the flow manually, and you can see the output of the format number action, float converted to integer in Power Automate.

How to convert float to integer in power automate

This is how to convert float to integer using Power Automate.

Convert float to an integer using formatNumber() in Power Automate

Here, we will see how to convert float to an integer using formatNumber() in Power Automate.

We will create an Instant cloud flow, initialize a float variable, and convert float to integer using formatNumber().

1. In Power Automate Cloud, click on the +Create icon and select Instant Cloud flow.

power automate convert dynamic content float to int

2. Then provide the flow name and select Manually trigger a flow action. Then click on Create.