diff --git a/src/Data/Float32.js b/src/Data/Float32.js index 4017f2b..18c117d 100644 --- a/src/Data/Float32.js +++ b/src/Data/Float32.js @@ -1,9 +1,10 @@ "use strict"; -exports.float32Top = 3.40282e38; -exports.float32Bottom = -3.40282e38; -exports.fromNumberImpl = function fromNumberImpl (x) { +export const float32Top = 3.40282e38; +export const float32Bottom = -3.40282e38; + +export function fromNumberImpl(x) { if (typeof Math.fround !== 'undefined') { return Math.fround(x); } else { @@ -17,5 +18,5 @@ exports.fromNumberImpl = function fromNumberImpl (x) { return r[0]; } } -}; +}