any idea how i could test if a variable is a floating point number?

John Roth johnroth at ameritech.net
Mon Jun 25 14:12:23 EDT 2001


"Gaz" <thecalm at NOSPAM.btinternet.com> wrote in message
news:9h76io$ht3$1 at neptunium.btinternet.com...
> any idea how i could test if a variable is a floating point number?
>
> gaz.
>
>

import types

if type(foo) == types.FloatType:

Check the spelling - this is from yesterday's memory

John Roth





More information about the Python-list mailing list