REBOL 3.0

ROUND as native?

Carl Sassenrath, CTO
REBOL Technologies
29-Apr-2009 17:02 GMT

Article #0195
Main page || Index || Prior Article [0194] || Next Article [0196] || 7 Comments || Send feedback

The round function is currently a mezzanine.

Type:

source round

to see the code.

The cool thing is that it's polymorphic - it works over a range of datatypes.

However, with the addition of arbitrary precision math (the money! datatype), some difficulties occur. To get the correct results, Ladislav will need to export the denormalize function.

Another choice might be to make round a native action. The advantage is performance.

7 Comments

REBOL 3.0
Updated 10-Dec-2017 - Edit - Copyright REBOL Technologies - REBOL.net