Re: floats

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

> 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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu