Power Automate Functions - Float Function

Power Automate Functions - Float Function

What is the float function?

Float is a built-in method that is used to convert Integer and String to float numbers.

Description:

In this guide, we will discuss how to use the float function in power automation. Let’s create a new flow. To create a new flow follow the following instructions:

Go to power Power Apps:

Power Automate Functions - Float Function

Navigate to Flows:
Power Automate Functions - Float Function
Click on the ‘New Flow’ button:

Power Automate Functions - Float Function
After clicking new flow select ‘Instant Cloud flow’ form the dropdown:
Power Automate Functions - Float Function
Finally set its name and select ‘manually’ as flow trigger point:
In the below screenshot we set the Name of flow and its trigger point which is ‘Manually trigger a flow. Finally, click on the create button to create a new flow. 
Power Automate Functions - Float Function

As you know in this document, we will discuss how to get float value from a string. On the other hand, discuss float function
First of all, initialize a variable using the ‘INITIALIZE VARIABLE’ action like below:
Set its attributes like ‘Name, Type, and Value’.
Power Automate Functions - Float Function

Secondly, add a ‘COMPOSE ACTION’:
In composing action called ‘float’ function to convert a string value into float.
Code:
float(variables('Get Float Value Using String as Type'))
Power Automate Functions - Float Function

Now flow is complete finally click on the save button to save your workflow and test it using the test button which is on the extreme top right >> select manually >> run flow >> done.
Output:
here is the output. In which we get the value from string types.
Power Automate Functions - Float Function


0 Comments

Thanks for commenting. Your comment will be live soon after approval.