Re: floats

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

Greg Haberek wrote:
> 
> > What?
> 
> Sorry, apparently Topica has issues with equal signs followed by
> numbers, after that it prints all the "equal-number" symbols all over
> the place. Let's try this instead:
> 
> }}}
<eucode>
> global function split_number( atom float_number )
> 
>   atom whole_number, decimal
> 
>   whole_number = floor( float_number )
>   decimal = (float_number - whole_number)
> 
>   return {whole_number, decimal}
> end function
> </eucode>
{{{

> 
> ~Greg

Greg, just try to feed your stillborn baby a negative number. jiri

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

Search



Quick Links

User menu

Not signed in.

Misc Menu