Hi everyone, I’ve just upgraded my project from Mendix 8 to 9 and I’ve encountered an error where I suspect it’s from the change of the round() function. Basically the microflow was taking the decimal attribute, convert it to string, and make comparison from there. I understand that for the existing function: round(5,2) will result in 5, instead of 5.00 Would any of you know if back in Mendix 8, the result of round(5,2) ends up with 5.00?
asked
Nicole Chung
2 answers
0
Strictly spoken the round(5,2) is correctly 5, but you need formatDecimal(value, ‘#.##”) to make the required string 5.00.
BTW take care of the rounding method in settings.
answered
Chris de Gelder
0
Hi Chris, understood that round(5,2)=5 is accurate.
did try the FormatDecimal function but it didn’t seem to work, any idea why?