By using PL/I, where the maintainers have just added a builtin (
ROUNDTOEVEN) function requested by yours truly to do just that.
Or translate this to COBOL:
dcl rd fixed (9,5);
if (unspec(rd) & '000000fff0'bx) = '0000005000'bx then
if (unspec(rd) & '0000010000'bx) = '0000000000'bx then
rd = rd - 0.005;