number three after the default comma
hi, how require the user to enter an amount of three digit after the decimal point in a text field, even if it inserts two digit and when he comes out of this field remains complete it by 0
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jean-Claude ColettePosted Oct 28, 2015, 10:42 AM
- If there is not you add .000 to the right of the string
- if there is, you split the string with the character .
you cut or fill to 0 depending on the length of the right substring and you restore the string