How to convert to string (decimal format)

0
Hello, I have a decimal value with for example “5723.685496” but i want only 5723.69. How to do in Mendix value.ToString(#.00) ? Thanks you for your help
asked
3 answers
3

Maybe this can help you https://docs.mendix.com/refguide/parse-and-format-decimal-function-calls

answered
1

Hi Julien Devanthey,

The Round function will help you to bring the value to a certain precision. Refer the below documentation 

https://docs.mendix.com/refguide/mathematical-function-calls#4-round

answered
1

Hi Julien,

You can use Round function with your decimal value.

Eg: round(5723.685496,2)

if you want decimal into String you just pass  toString method.    

 

Thanks,

Hope this will help you

answered