[REBOL] Re: Core 2.6 - Last minute requests - take your chance!
From: narg:polbox at: 7-Apr-2002 9:07
more math func's like:
round
ceil
floor
bound: func [x min max] [
if (x > max) return max
if (x < min) return min
return x
]
near: func [x y dy] [
if all [(x < (y + dy)) (x > (y - dy))] return true
return false
]
and something like printf function for pretty output formating
printf "####.##" 20.1
should give: 0020.10
Piotr Gapiński; mailto:[news--rowery--olsztyn--pl]
Olsztyńska Strona Rowerowa; http://www.rowery.olsztyn.pl