Add Math.signbit (#333)

This commit is contained in:
Max Graey
2018-11-18 12:46:48 +02:00
committed by Daniel Wirtz
parent 1928404f3b
commit 4944280cdc
7 changed files with 14830 additions and 14334 deletions

View File

@ -762,6 +762,8 @@ interface IMath<T> {
round(x: T): T;
/** Returns the sign of `x`, indicating whether the number is positive, negative or zero. */
sign(x: T): T;
/** Returns whether the sign bit of `x` is set */
signbit(x: T): bool;
/** Returns the sine of `x`. */
sin(x: T): T;
/** Returns the hyperbolic sine of `x`. */