Ngx-mask: can you keep the decimal point two

Created on 2 Jun 2017  路  6Comments  路  Source: JsDaddy/ngx-mask

eg. *.00

enhancement help wanted

Most helpful comment

I have a similar problem to @kordenv

mask="0*.00"
Input value: 178.09
Output value: 17809

(Although it does work correctly if I use mask="comma_separator.2")

Ahh... problem solved: need to include [dropSpecialCharacters]="false"

All 6 comments

Nice!

@wqdjl Could you provide more complex example or give a link?

You should be able to see it here
https://github.com/RobinHerbots/Inputmask

@wqdjl @victorschinaider We add support for * character . You can use latest version with mask 0*.00

@wqdjl @victorschinaider We add support for * character . You can use latest version with mask 0*.00

doesn't work

my mask: 0*.00000
ngx-mask remove dot after submit
i write: 123.12345 and get 12312345

why?

I have a similar problem to @kordenv

mask="0*.00"
Input value: 178.09
Output value: 17809

(Although it does work correctly if I use mask="comma_separator.2")

Ahh... problem solved: need to include [dropSpecialCharacters]="false"

Was this page helpful?
0 / 5 - 0 ratings