Custom Mask Component does not round the value when specifying the number of decimals

Custom Mask Component does not round the value when specifying the number of decimals

  
 Has somebody encountered this issue wherein when I used the Component CustomMask, and I specified the decimal digits to 2, it does not round off the value of the decimal place?
  example, 34.785, supposedly it should become 34.79, but it only becomes 34.78. Is there something I missed in the configuration? Our application is focused on money so every decimal counts..
Hi,

It's likely not specific to the CustomMask component, but it is the platform behavior instead. Round() function uses the Round half to even method (rounds to the nearest integer, 0.5 rounds the number to the nearest even integer).

You can probably use Trunc(Value * 100 + 0.5) / 100 instead. Isolate it in a function so you can reuse it. See an example here.