----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 30, 2005 10:48 PM
Subject: [REBOL] Re: REBOL Newbie: Floating Point Rounding / Formatting
Function ?

Sunanda,

>
> Anthony:
>
> > At first I thought /scale could be used to achieve such
> > rounding, but all my attempts at doing so have failed
>
> Looks like you've misread
>   help round
> The refinement is /to and the value it takes is a scale factor.
>
> ie the number is round to the nearest multiple of the scale factor:
>
> round/to 17 21
> == 21
> round/to 57 21
> == 63
>
> round/to 12.35 .1
> == 12.4
> round/to 12.34 .1
> == 12.3
>

I'm *so* glad I claimed to be a newbie. Thus, whilst my face probably looks
quite red, it doesn't *feel* as red :) !

Thank you so much 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.

Reply via email to