lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Thursday, September 21, 2006, 6:01:12 PM, David Jones wrote:

> Funny how no-one ever wants round-away-from 0, could be called
> "inflate" perhaps?

I just happen to be working on my decNumber documentation...

decNumber.ROUND_CEILING     round towards +infinity
decNumber.ROUND_UP          round away from 0
decNumber.ROUND_HALF_UP     0.5 rounds up
decNumber.ROUND_HALF_EVEN   0.5 rounds to nearest even
decNumber.ROUND_HALF_DOWN   0.5 rounds down
decNumber.ROUND_DOWN        round towards 0 (truncate)
decNumber.ROUND_FLOOR       round towards -infinity

:-)    (to increase my smiley score!)


Doug Currie
Londonderry, NH