mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 23:07:42 +03:00
added Math.sumPrecise()
This commit is contained in:
@@ -357,6 +357,7 @@ function test_math()
|
||||
assert(Math.hypot(-2), 2);
|
||||
assert(Math.hypot(3, 4), 5);
|
||||
assert(Math.abs(Math.hypot(3, 4, 5) - 7.0710678118654755) <= 1e-15);
|
||||
assert(Math.sumPrecise([1,Number.EPSILON/2,Number.MIN_VALUE]), 1.0000000000000002);
|
||||
}
|
||||
|
||||
function test_number()
|
||||
|
Reference in New Issue
Block a user