How to Initialize Float Variable in Power Automate

In this Power Automate Tutorial, we will discuss what is Power Automate Initialize Float Variable and how to Initialize Float Variable in Power Automate with a few examples.

Also, Read: How to Initialize Object Variable in Power Automate

What is Initialize Float Variable in Power Automate

There are numerous types of initialized variables in Power Automate. In this case, one of them is the Power Automate Float variable.

When we initialize a variable with float variable type, it accepts the double-precision floating-point numbers values. Examples of floats value are 1.243 and 92.345.

In the following example, we will see how we can initialize the Float variable using Power Automate.

Check out: How to Initialize Integer Variable in Power Automate

How to Initialize Float Variable in Power Automate

Here we will see how to Initialize Float Variable in Power Automate.

Example:

In this example, we will manually enter the float value while initializing the variable and displaying the output value in compose action.

  • Create a Power Automate instant cloud flow, enter the flow name (Power Automate Initialize Variable float), and choose the trigger as Manually trigger a flow.
  • Click on the Create option as highlighted below:
Power Automate Initialize Variable float
Power Automate flow Initialize Float variable
  • Initially, we will initialize a variable with Name (VarFloat), and then we will choose the Type as the Float, and insert a Value with decimal places (78.235).
Power Automate Initialize Variable float example
Power Automate Initialize Variable float example
  • Then we will add a Compose action to get the result value as the float from the initialized variable.
Example of Power Automate Initialize Variable float
Example of Power Automate Initialize Variable float
  • In the below screenshot, in the compose action we can see the initialized float value.
Power Automate Initialize Variable float type example
Power Automate Initialize Variable float type example

This is how to Initialize Variable with float data type on Power Automate.

Also, have a look: Conditionally Update SharePoint list items using Power Automate

Example: 2

In the example, we will pass the float value dynamically and then we will display the output value in compose action.

  • Select the created Power Automate flow, and Expand the Manually trigger a flow.
  • Choose the type of user input by selecting +Add an input and select the Number variable type.
Example of Power Automate Initialize Float variable type
Example of Power Automate Initialize Float variable type
  • Now add the +new step and select the initialized variable to enter the variable name and choose the variable type as Float and in the value section pass the dynamic value.
  • Here in this example, I have passed the Float Value dynamically.
Initialize Variable float type in Power Automate
Initialize Variable float type in Power Automate
  • Now we will add the Compose action to see the output value from the initialized variable. Click on the Save button to save the Power Automate flow:
Initialize Variable float in Power Automate
Initialize Variable float in Power Automate
  • Select the Test-> Manually test-> Run flow as below:
Initialize Variable float type in Power Automate example
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
Initialize Variable float type in Power Automate flow

This is another example to initialize the Float Variable in Power Automate.

Furthermore, you may like some more Power Automate and SharePoint tutorials:

In this Power Automate Tutorial, we have discussed what is Initialize Float Variable type and how to Initialize Float Variable in Power Automate with a few examples.