>
> How about this function for rounding positive or negative numbers:
>
> round: func [R [integer! decimal!]][
> to-integer R + (-1 * to-integer negative? R) + .5
> ]
>
> Shows one of the lesser-known uses of logic values in REBOL :-)
I still don't understand why should -1,5 (or by US syntax -1.5)
be rounded to -2. I think it should be rounded to -1 and I also
think that the definiton of rounding by to-integer! (x + 0.5)
is fully convenient.
(I study math (also ;-) on university for more than 4 years... :-)
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]