----- Original Message ----- From: "Luca Truffarelli" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 30, 2005 10:35 PM Subject: [REBOL] Re: REBOL Newbie: Floating Point Rounding / Formatting Function ?
Luca, > > > At first I thought /scale could be used to achieve > > such rounding, but all my attempts at doing so > > have failed. For example: > > > > round 123.456 /scale 2 > > > > gives an integer result of: > > > > 2 > > I think it returns 2 just because it is the last number > you wrote. > Indeed ! > > Anyway you can accomplish it this way: > round/to 123.456 0.01 > == 123.46 > > round/to 123.454 0.01 > == 123.45 > It would seem I have *much* yet to learn :) ! Many thanks for your help. Cheers, Anthony Borla -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
