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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Jean-Claude ColetteRank #2,678 · 520 reputationPosted Oct 28, 2015, 6:42 AM EDT
- 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