Add min. normalized positive value (MIN_POSITIVE_VALUE) for floats (#50)

This commit is contained in:
Max Graey
2018-03-21 02:06:56 +02:00
committed by Daniel Wirtz
parent 13ed832c5d
commit 477669d7a3
4 changed files with 16 additions and 0 deletions

View File

@ -214,6 +214,7 @@ declare function f32(value: void): f32;
namespace f32 {
export const MIN_VALUE: f32 = -3.40282347e+38;
export const MAX_VALUE: f32 = 3.40282347e+38;
export const MIN_POSITIVE_VALUE: f32 = 1.175494351e-38;
export const MIN_SAFE_INTEGER: f32 = -16777215;
export const MAX_SAFE_INTEGER: f32 = 16777215;
export const EPSILON: f32 = 1.19209290e-07;
@ -225,6 +226,7 @@ declare function f64(value: void): f64;
namespace f64 {
export const MIN_VALUE: f64 = -1.7976931348623157e+308;
export const MAX_VALUE: f64 = 1.7976931348623157e+308;
export const MIN_POSITIVE_VALUE: f64 = 2.2250738585072014e-308;
export const MIN_SAFE_INTEGER: f64 = -9007199254740991;
export const MAX_SAFE_INTEGER: f64 = 9007199254740991;
export const EPSILON: f64 = 2.2204460492503131e-16;