ROUND as native?
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
|