purescript-deprecated / purescript-math

Math functions
BSD 3-Clause "New" or "Revised" License
19 stars 20 forks source link

fround support #21

Closed athanclark closed 2 years ago

athanclark commented 5 years ago

fround is a mostly implemented ES6 standard across browsers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/fround#Browser_compatibility

It rounds high precision floating points to their nearest Float32 value - very useful for WebGL ffi and ArrayBuffer nonsense :)

athanclark commented 5 years ago

Oops, just saw #19