Problem of Reversed Number Formatting with Thousand Separators for BRL Currency #124
-
I am using the example of reversed number format with thousand separators for the currency (R$) BRL decimal. However, when the (float) value is received via v-model, for example 29.9, the return is 2,99 instead of the expected 29,90. Of course, adding the zero at the end in 29.90 works correctly, but I would like to find a way to avoid having to do this.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Reversed mask starts from the end, and always process two last digits as fraction. You could use |
Beta Was this translation helpful? Give feedback.
-
Following the example, I set it up for BRL currency, it worked correctly with the initial value, but when I clear the input, the return gets misconfigured and I can't type again, I am not knowing how to set it up.
|
Beta Was this translation helpful? Give feedback.
Following the example, I set it up for BRL currency, it worked correctly with the initial value, but when I clear the input, the return gets misconfigured and I can't type again, I am not knowing how to set it up.