>ParseInt doesn't always work properly.  I tried that and parseFloat and it
>kept erroring out.  The only solution we found was to multiply by 1 or
>subtract 0

Some versions of IE have problems the parseInt() function--they will at
times incorrect choice the base format of the number. You can get around
this by specifying the base format as 10:

var sNumber = "120";
var iNumber = parseInt(sNumber, 10);

That should work correctly.

-Dan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232768
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to