> I belive that parseInt treats it as a string That's the definition of parseInt. See http://www.ecma-international.org/publications/files/ecma-st/Ecma-262.pdf section 126.96.36.199. In particular, the function definition: parseInt (string , radix) and the description of how the function works: When the parseInt function is called, the following steps are taken: 1. Call ToString(string). 2. Let S be a newly created substring of Result(1) consisting of the first character that is not a StrWhiteSpaceChar and all characters following that character. (In other words, remove leading white space.) 3. Let sign be 1. ... and so on. The key part here is step 1. It sounds like you are looking for Math.round(), not parseInt()....
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.