How to Initialize Float Variable in Power Automate?

Do you want to know how to initialize a float variable in Power Automate?

In this Power Automate tutorial, I have explained how to initialize a float variable in Power Automate.

A float variable type accepts the double-precision floating-point numbers values. Examples of float values are 1.243 and 92.345.

Initialize a Float Variable in Power Automate

To initialize a float variable in Power Automate, I will take an instant cloud flow which will be triggered manually by the user. Once the flow triggers, users can enter value and then inside the flow, I will show you how to initialize a float variable.

1. Open the https://make.powerautomate.com and sign in with your credentials. Then from the home page, click on + Create from the left navigation. The choose “Instant cloud flow” template. Then enter a flow name and also choose the trigger as “Manually trigger a flow” like below:

Power Automate Initialize Variable float

2. Next, add the “Initialize variable” flow action to it and provide the details below:

  • Name: VarFloat
  • Type: Float
  • Value: 78.235
Power Automate Initialize Variable float example

3. This is how to initialize a float variable in Power Automate. And now if you try to get the value of the variable, then you can add a Compose action and assign the variable name as Inputs like below:

Example of Power Automate Initialize Variable float

4. Now, when you Save the flow and run the flow, you can see the float value is displaying from the variable in the compose action.

Power Automate Initialize Variable float type example

This is one way of initializing a flow data type by providing a float value to a variable in Power Automate.

We can also assign a dynamic float value to a variable in Power Automate. See the example below:

1. Here, after I created the instant cloud flow, I added an input box. Choose the type of user input by selecting +Add an input and then select the Number variable type.

Example of Power Automate Initialize Float variable type

2. Now add the +new step and select the initialized variable to enter the variable name, choose the variable type as Float, and in the value section, pass a dynamic value.

Initialize Variable float type in Power Automate
Initialize Variable float type in Power Automate

3. Now, we will add the Compose action to see the output value from the initialized variable. Click on the Save button to save the flow:

Initialize Variable float in Power Automate

4. Select the Test-> Manually test-> Run flow as below:

Initialize Variable float type in Power Automate example

The Screenshot below displays the expected output value in the compose action as highlighted:

Initialize Variable float type in Power Automate flow

I hope you got an idea of how to initialize a float variable in Power Automate. This way you can initialize and use a Power Automate float variable.

You may also like: