You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Assume that if we are provided a tiny value, we don't want to underflow to zero by storing as `float32`...
61
+
if(
62
+
value>-FLOAT32_SMALLEST_SUBNORMAL&&
63
+
value<FLOAT32_SMALLEST_SUBNORMAL
64
+
){
65
+
return'float64';
66
+
}
67
+
// Any number which reaches this point is less than the maximum single-precision floating-point number, as floating-point format supports a limited number of decimals (e.g., (1.0+EPS)*10**15 => 1000000000000000.2, which is less than ~3.4e38)...
68
+
return'float32';
69
+
}
70
+
71
+
36
72
// MAIN //
37
73
38
74
/**
@@ -51,6 +87,18 @@ var UINT32_MAX = require( '@stdlib/constants/uint32/max' );
0 commit comments