I have column in SharePoint list with type data Number.
I want convert from float to integer, because showing error message at my flow:
Please Check My Flow:
How to convert from type data Number to Float (base on to error message). Because I want create calculated Planned Due Date = addDays(utcNow() + estimated sailing in duration. Thanks
Solved! Go to Solution.
Hi @krfajar,
Does your Float number contain decimal places? If not, you could put the int() function into the second parameter of addDays() function:
addDays(utcNow(),int(variables('Float')),'yyyy-MM-dd')
If it contains, you should remove the decimal part, for example:
first(split(string(variables('Float')),'.'))
addDays(utcNow(),int(outputs('Compose_2')),'yyyy-MM-dd')
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @krfajar please add int() and inside it your current expression like int('Here your current expression')
Proud to be a Flownaut!
Hi @ChristianAbata
Thanks for your response.
What do you mean like this for convert to integer?
Thanks
Hi @krfajar,
Does your Float number contain decimal places? If not, you could put the int() function into the second parameter of addDays() function:
addDays(utcNow(),int(variables('Float')),'yyyy-MM-dd')
If it contains, you should remove the decimal part, for example:
first(split(string(variables('Float')),'.'))
addDays(utcNow(),int(outputs('Compose_2')),'yyyy-MM-dd')
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
39 | |
36 | |
34 | |
32 | |
27 |
User | Count |
---|---|
45 | |
36 | |
33 | |
25 | |
22 |