Adriandmen / 05AB1E

A concise stack-based golfing language
MIT License
760 stars 48 forks source link

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

Open kcruijss opened 1 year ago

kcruijss commented 1 year ago

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.