Hello, Eric,
excellent, although I think, that the textbooks prefer this round:
round: func [n [number!] p [integer!] /local factor r] [
factor: 10 ** (- p)
n: 0.5 * factor + n
n - either negative? r: n // factor [factor + r] [r]
]
; where
round -0,5 0
== 0
Hi Michal, Joel,
Hi,
That works, but it's not exactly what I wanted. I want to round a
decimal and print it, not convert it to string, shorten it and then
print it.
[EMAIL PROTECTED] wrote:
Hello, Michal:
On 24-Jan-00, [EMAIL PROTECTED] wrote:
Is it possible to print decimal values with a given