Parse a float number to a string with x decimals


/ Published in: JavaScript
Save to your folder(s)

converts a number "v" to a float number and formats the string it with "d" decimals, used on input type text onblur="parseFloatString(this.value,2);"

URL: http://www.barattalo.it/2009/11/09/parse-a-float-number-in-javascript/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.