mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
LibJS: Add Math.exp()
This commit is contained in:
parent
b27834cf16
commit
e375766f98
5 changed files with 48 additions and 12 deletions
|
@ -50,3 +50,11 @@ function assertThrowsError(testFunction, options) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the difference between two numbers is less than 0.000001.
|
||||
* @param {Number} a First number
|
||||
* @param {Number} b Second number
|
||||
*/
|
||||
function isClose(a, b) {
|
||||
return Math.abs(a - b) < 0.000001;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue