Calculation of 0-/+0

0
Hi , does anyone know how to control the following Mendix calculation ? 0 – 0 = 0E-8 ? I expect  0 – 0 = 0  Thanks
asked
1 answers
2

Hi Elina,

If the attribute is of type decimal and you add a breakpoint to see this in debug mode it will be shown as 0E-8, E-8 represents 8 digits after decimal point (i.e. E-8 = .00000000). When you compare or use this value anywhere in your calculation 0E-8 is same as 0.

 

Hope this helps!  

answered