05AB1E icon indicating copy to clipboard operation
05AB1E copied to clipboard

Issue in the banker's rounding builtin `ò` (or was this intended?)

Open kcruijss opened this issue 1 year ago • 0 comments

There seems to be an issue in the banker's rounding builtin ò. By the looks of it, it seems to round away from zero for halves, instead of doing actual banker's rounding with round to even.

Or was this intended, and the new version of 05AB1E lacks a banker's rounding builtin, and only has a regular round builtin with 'away from zero' convention?

Try it online.
Compare it to the same code in the legacy version of 05AB1E, where it does work as banker's rounding as mentioned in the docs.
Found while working on this codegolf answer of mine.

kcruijss avatar Jan 06 '23 07:01 kcruijss