Hi
I am trying to get a solution of a calculation in my flow with only one decimal.
Here is my flow:
I am picking up the file Size of my document and want to create exact the same value in another column. The purpose of this is, that I want to check if the content of my document has changed or not.
So in this flow my file size is at 53.100000000917841. I want it to be 53.1.
Once this is done i just add KB to the string and i can compare it to my metadata-field Document Size. (Hopefully 😉 )
Thanks in advance
BR
Peter
Hi!
You first need to convert the float to a string and then you could use substring in combination with indexOf for that: substring(string(variables('decimal Value')),0,add(2,indexOf(string(variables('decimal Value')),'.')))
Hi
That works great.
Only one more thing I need to apply.
I have to round my decimal correctly.
In the example in the picture, I want the full number to be 53.1
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
40 | |
36 | |
34 | |
32 | |
27 |
User | Count |
---|---|
40 | |
37 | |
33 | |
25 | |
22 |