JRS: In article <11**********************@i42g2000cwa.googlegroups .com>
, dated Mon, 21 Aug 2006 15:32:56 remote, seen in
news:comp.lang.javascript,
ri****************@gmail.com posted :
>How can I convert a value to Double in JavaScript??? In vbscript i
believe its done as
cDbl(Value)
I tried lots of way but getting a value of "NaN".
Any suggestions/ideas will be truely appreciated.
Before posting here you should have read the newsgroup and its FAQ,
frequently cited. All of it, but especially sections 2 & 4.21.
All numbers (except when stored as strings) are stored as IEEE Doubles.
To convert a numeric string to a number use unary +, parseInt,
parseFloat, or a purely arithmetic context.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.