[thelist] JavaScript : How to determine if float or integer

Markus Staas markus at interactive-webdesign.com
Tue Jan 28 05:02:06 CST 2003


Hi,

I have a simple script to write, in this Script I want to figure out if
a variable returned is either a float or integer, with "typeof" both are
returned as "number".

Do you know any other way than scanning for the point in the whole
variable?

Thank you very much in advance.

Cheers,

Markus




-----Ursprüngliche Nachricht-----
Von: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org] Im Auftrag von Peter-Paul Koch
Gesendet: Dienstag, 28. Januar 2003 10:10
An: thelist at lists.evolt.org
Betreff: [thelist] Opera 7 final


Oper 7 final has been released. http://www.opera.com

--------------------------------------------------
ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
http://www.xs4all.nl/~ppk/
Column "Keep it Simple":
http://www.digital-web.com/columns/keepitsimple/
W3C DOM Compatibility Table, expanded & updated
http://www.xs4all.nl/~ppk/js/index.html?version5.html
--------------------------------------------------



_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail

--
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !




More information about the thelist mailing list