hi all,
probably silly question, but can someone please guide me how can I receive a result in decimal number after dividing two numbers? I am always getting result in whole number. Formula looks like this:
Solved! Go to Solution.
How are you using the result? Is it going into a variable? If so, what is the data type of the variable.
Here is an example that shows getting a decimal output:
Scott
Hi @lamacz,
Have your problem be solved refer to @ScottShearer 's solution?
As @ScottShearer 's solution, you could convert the int value to float value, then you could get the float result after div.
The screensho of the flow as below:
The expression in the Compose as below:
div(variables('Recharge'),float(43300))
The flow would run successfully as below:
Best regards,
Alice
How are you using the result? Is it going into a variable? If so, what is the data type of the variable.
Here is an example that shows getting a decimal output:
Scott
Hi @lamacz,
Have your problem be solved refer to @ScottShearer 's solution?
As @ScottShearer 's solution, you could convert the int value to float value, then you could get the float result after div.
The screensho of the flow as below:
The expression in the Compose as below:
div(variables('Recharge'),float(43300))
The flow would run successfully as below:
Best regards,
Alice
hi both,
it was a truly silly qustion, yours solutions are working. I was incorrectly using integer type of variable to store results.
Many thanks
Lukas
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
32 | |
15 | |
15 | |
13 | |
7 |
User | Count |
---|---|
39 | |
20 | |
14 | |
11 | |
8 |