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:
Navigate to Flows:Click on the ‘New Flow’ button:
After clicking new flow select ‘Instant Cloud flow’ form the dropdown:
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.
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’.
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'))
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.
0 Comments
Thanks for commenting. Your comment will be live soon after approval.