Currently I am facing an issue in formatting decimals.
On the blur event of the text box, if the user enters:
1) 1 -> this should be converted to 001.00
2) 2.5 -> this should be converted to 002.50
3) .5 -> this should be converted to 000.50
4) 12.4 -> this should be converted to 012.40
All inputs should be converted to the same format upon leaving the input or losing focus.
1 Answer