Hi, I have a requirement to publish an api, for a 3rd party application to consume. The expectation with some decimal properties is that the number will be sent respecting 2 decimal place values i.e. 3.00. This is a price field i'm sending. However no matter how i format the decimal, the fraction is truncated so i end up with 3. I could convert to string and send the string value but would prefer to keep the decimal format. Anyone know a solution for this one? Kind regards,

asked

Tarig Elomari

1 answers

0

in the case you mean:

- 3.00 -> round (3.004, 2) (or other rounding math function : https://docs.mendix.com/refguide/mathematical-function-calls

- 3.00. -> you cant have double points in decimal as I know on Mx -> you have to use string