150
Views
2
Comments
Solved
[Custom Input Masks] MaskNumber returns incorrect value with input that containts 3 decimals.
custom-masks
Web icon
Forge asset by Sara Gonçalves

Hi,


I am currently using the MaskNumber widget with the following input:


DecimalDigits: 5

DecimalSeparator: ","

GroupSeparator: "."


With input values like: 0.0054, 0.0104, 0.03 the mask works correctly. But it goes wrong with input values like 0.026 and 0.014. When using these input values the return values are 26 and 14 instead of 0,026 and 0,014. Could you please take a look at this?


Kind Regards,

Jordi

2021-06-17 09-01-29
Luís Almeida
Solution

Still having problems with it?

The component was updated in the meantime might be fixed now

UserImage.jpg
victors

I don't quite sure what you're trying to achieve but...

By default it should be:

DecimalSeparator: "."

GroupSeparator: ","

Ex: 1.000,00 = 1 thousand.


In your case your using the other way around, so your input should be:

0,026 and 0,014 then you'll get 0,026 and 0,014

2021-06-17 09-01-29
Luís Almeida
Solution

Still having problems with it?

The component was updated in the meantime might be fixed now

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.