kataan 0.0.4

A high-performance JavaScript engine written in pure Rust. Library, C FFI, and CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/*---
description: Additional Math functions
esid: sec-math-object
---*/
assert.sameValue(Math.hypot(3, 4), 5);
assert.sameValue(Math.cbrt(27), 3);
assert.sameValue(Math.log2(8), 3);
assert.sameValue(Math.log10(1000), 3);
assert.sameValue(Math.sign(-0.5), -1);
assert.sameValue(Math.max(), -Infinity);
assert.sameValue(Math.min(), Infinity);
assert.sameValue(Math.trunc(-4.7), -4);