Re: Hello

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thu,  3 Jan 2002 15:21:52 +0000, you wrote:

<snip> 
>> I notice there is no float() function.
>> Am I right in assuming that is the only distinction between the atom()
>> and integer() functions? I tested it and it seems to be true.
<snipo>
>  You can create your own float types by doing this:
>
>global
>type float( atom data )
>  return ( data >= -3.4E38 and data <= 3.4E38 )
>end type
>--
>global
>type double( atom data )
>  return ( data >= -1.7E308 and data <= 1.7E308 )
>end type
<snipoo>

Many thanks, informative but unfortunately not quite what I meant:
I shud'a ritten " *only* difference" which was the intrigue I had ;)

Pete
- I assume the values for float are entirely of your own making and
possibly from C or somesuch's ideas of float. (double==refman)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu