mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 04:01:46 +00:00
Add min. normalized positive value (MIN_POSITIVE_VALUE) for floats (#50)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user