assisrafael / assisrafael/angular-input-masks

Facing issue with ui-number-mask in Portuguese (Brazil) locale

Open
#193 1 comment 0 reactions 0 assignees View on GitHub
needs: more info
Dominant language
JavaScript
Stars
955
Forks
329
PR merge metrics
No merged PRs in 30d

Description

My application locale is Portuguese (Brazil) ,. In Brazil a dot (.) is used to separate thousands and comma(,) is used for decimal. Suppose user enters value 4.878 When user saves the data, it saves the correct value as entered in UI, but when next time page render it shows the round off value(i.e. 5 instead of 4.878). I am facing problem with numeric text box without decimal places.
`

If I set 2 decimal places for same textbox, then it will show/renders correct value always(i.e. 4.878,00)
`

Localization is already implemented, if I enter the larger number then its works fine. Suppose i entered 6.666.664, then system shows/render the correct value. Issue occurs only if I enter 4-6 digits value.For 1-3 digits and greater then 6 digits it works fine.
Any suggestion, why values are rounding off and how to fix this.
##

Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34630933-facing-issue-with-ui-number-mask-in-portuguese-brazil-locale?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.