[BUGFIX] Do proper nearest-integer rounding

Fixes a spec bug on rbx