Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #17171
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2012-11-11 10:07 -0800 |
| References | <055e7215-93ba-40a9-81f3-312ea0e4f5e2@googlegroups.com> <aga4cnF1f0vU1@mid.individual.net> <f361ca82-911a-4f52-9132-3f0af5baf3ca@googlegroups.com> <aga76fF248tU1@mid.individual.net> |
| Message-ID | <06fc8ff0-b4fd-4518-9247-1a62fb158439@googlegroups.com> (permalink) |
| Subject | Re: JavaScript Case Project 3-1: The dreaded NaN error |
| From | dmn2004404@gmail.com |
On Sunday, November 11, 2012 11:56:33 AM UTC-6, Mel Smith wrote:
> <dmn2004404@gmail.com> wrote in message
>
> news:f361ca82-911a-4f52-9132-3f0af5baf3ca@googlegroups.com...
>
> > On Sunday, November 11, 2012 11:08:42 AM UTC-6, Mel Smith wrote:
>
> >> where I'm going wrong?
>
>
>
> > Sadly, I think I tried that, and it also failed.
>
>
>
>
>
> Hi:
>
>
>
> Well, *I* tested it on my machine, after inputting 123.45, and got a
>
> nice long floating point result !!
>
>
>
> Remember the *value* of an input field is *text* -- and is *not* a
>
> numeric !
>
>
>
> You must get this 'value' and convert it to a numeric by some means.
>
> For example use parseFloat("123.45",10) . This says: Take the string
>
> "123.45" and convert it to a floating point numeric with a base 10 ---
>
> which is most surely what you wish.
>
>
>
> So, take another 'head-crashing' look at it.
>
>
>
> -Mel Smith
>
> Mesa, Arizona
GAAH! It's STILL not working!!!
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JavaScript Case Project 3-1: The dreaded NaN error dmn2004404@gmail.com - 2012-11-11 08:28 -0800
Re: JavaScript Case Project 3-1: The dreaded NaN error "Mel Smith" <med_cutout_syntel@aol.com> - 2012-11-11 10:08 -0700
Re: JavaScript Case Project 3-1: The dreaded NaN error dmn2004404@gmail.com - 2012-11-11 09:34 -0800
Re: JavaScript Case Project 3-1: The dreaded NaN error "Mel Smith" <med_cutout_syntel@aol.com> - 2012-11-11 10:56 -0700
Re: JavaScript Case Project 3-1: The dreaded NaN error dmn2004404@gmail.com - 2012-11-11 10:07 -0800
Re: JavaScript Case Project 3-1: The dreaded NaN error dmn2004404@gmail.com - 2012-11-11 10:52 -0800
Re: JavaScript Case Project 3-1: The dreaded NaN error JJ <jaejunks@glegooilma-swapit.com> - 2012-11-11 20:15 +0000
Re: JavaScript Case Project 3-1: The dreaded NaN error dmn2004404@gmail.com - 2012-11-11 12:45 -0800
Re: JavaScript Case Project 3-1: The dreaded NaN error JJ <jaejunks@glegooilma-swapit.com> - 2012-11-11 20:11 +0000
Re: JavaScript Case Project 3-1: The dreaded NaN error dmn2004404@gmail.com - 2012-11-11 12:15 -0800
Re: JavaScript Case Project 3-1: The dreaded NaN error Osmo Saarikumpu <osmo@weppipakki.com> - 2012-11-12 10:10 +0200
Re: JavaScript Case Project 3-1: The dreaded NaN error Gregor Kofler <usenet@gregorkofler.com> - 2012-11-12 09:51 +0100
Re: JavaScript Case Project 3-1: The dreaded NaN error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-11-12 11:49 +0100
csiph-web