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