Bankers rounding by I., S.

s/\(.\)\./d\1p/
h
/p[0-4]/b
/[02468]p50*$/b
y/0123456789/123456789A/
:
s/.*d//
s/p.*//
H
g
s/d.*\n//
s/A/10/

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page