paulmillr/es6-shim — pull request #140 by ljharb (2013-09-02 06:13:22+00:00)
Title: Math.roundFloat32

Adding Math.roundFloat32.

There's a good bit of code, from https://github.com/inexorabletash/polyfill/blob/master/typedarray.js#L172-L278 (with permission), to support proper number truncation in an environment without TypedArrays.

There's also a TypedArray solution that will be much faster in newer environments.