Hi Anthony, On Friday, December 30, 2005, 11:46:01 AM, you wrote:
AB> Sure, I tried that, but the result it gives is an integer. For example, AB> doing: AB> round 123.456 AB> gives an integer result: AB> 123 AB> At first I thought /scale could be used to achieve such rounding, but all my AB> attempts at doing so have failed. For example: AB> round 123.456 /scale 2 AB> gives an integer result of: AB> 2 AB> I've obviously misunderstood how /scale is used. >> round/to 123.456 0.01 == 123.46 >> round/to 123.456 0.1 == 123.5 >> round/to 123.456 1 == 123 >> round/to 123.456 10 == 120 You can even do things like: >> round/to 123.456 3 == 123 >> round/to 123.456 7 == 126 Regards, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> --- http://www.rebol.com/ Colella Chiara software division --- http://www.colellachiara.com/ -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
