Re: floats

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

> I don't know if the last post made it so here's my question again
>
> I was wondering if there was an easy way to seperate the exponent from a
> fractal of a float32
>
> eg: atom float32 float32=12345.54321
>
> I need to make two words [12345][54321] respectively

This keeps the numbers as numbers, not text.

atom number, whole, decimal

  number = 12345.54321
  whole = floor( number )
  decimal = number - whole


~Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu