Click to See Complete Forum and Search --> : parseInt problem


tramp1982
12-23-2003, 10:32 AM
Hi,

Can you tell me the equivalent rule to parseInt but with more than whole numbers.
I need to add 2 numbers together as variable but they are stored as strings and concatenate.
So I used the parseInt function & ignored any decimals I used.

Quick reply would be great.

Richard
ritchie@central-point.co.uk

requestcode
12-23-2003, 10:52 AM
You could try parseFloat. Here is a link:
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/toplev.html#1064132