2017-08-04 17:14:55 +02:00

14 lines
224 B
TypeScript

interface Math {
fround(n: number): number;
}
(() => {
if (!Math.fround) {
Math.fround = (function (array) {
return function (x: number) {
return array[0] = x, array[0];
};
})(new Float32Array(1));
}
})();