Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
leading zero
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Lee, post: 4949467"] Andrew Poulos said: Ideally, you should fix the server application so that it understands how to parse numbers. If that's not feasible, complain to somebody until they fix the server application so that it can parse numbers. If that's not feasible, either, determine whether the lousy server side software minds if there is more than one leading zero (eg "00.8"), and if it doesn't, simply feed the lousy software an extra zero every time ( value="0"+value ). Otherwise, you'll have to test the string representation of the number to see if the first character is a ".", and if it is, prepend a "0". -- [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
leading zero
Top