Re: floats
- Posted by Greg Haberek <ghaberek at gmail.com> Apr 13, 2005
- 464 views
> 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