Re: Maths Functions
- Posted by Derek Parnell <ddparnell at bigpond.com> Jul 20, 2001
- 341 views
Hi Chris, try these.... function RoundDown(atom a) return floor(a) end function function RoundUp(atom a) if integer(a) then return a else return floor(a + 1) end if end function function Round(atom a, integer places) return floor(a * power(10, places) + 0.5) * power(10, -places) end function ----- Original Message ----- From: "Structural D-zine" <structuraldzine at hotmail.com> To: "EUforum" <EUforum at topica.com> Sent: Friday, July 20, 2001 7:51 PM Subject: Maths Functions > I have been looking for maths functions equivalent to the Basic > Round(x,no of places) > RoundUp > RoundDown >