-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add javascript Number consts. (#1965)
* Add javascript Number consts. * Add tests
- Loading branch information
1 parent
450c477
commit bb066e6
Showing
3 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
exports.const_epsilon = function() { | ||
return Number.EPSILON; | ||
}; | ||
exports.const_max_safe_integer = function() { | ||
return Number.MAX_SAFE_INTEGER; | ||
}; | ||
exports.const_max_value = function() { | ||
return Number.MAX_VALUE; | ||
}; | ||
exports.const_min_safe_integer = function() { | ||
return Number.MIN_SAFE_INTEGER; | ||
}; | ||
exports.const_min_value = function() { | ||
return Number.MIN_VALUE; | ||
}; | ||
exports.const_negative_infinity = function() { | ||
return Number.NEGATIVE_INFINITY; | ||
}; | ||
exports.const_positive_infinity = function() { | ||
return Number.POSITIVE_INFINITY; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters