Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "float/float"

Index

Variables

fround

fround: function = ((Math as { fround?: (x: number) => number })).fround || froundShim

Returns new number rounded to float32.

In ES2015, Math.fround.

Type declaration

    • (x: number): number
    • Parameters

      • x: number

      Returns number

isNegativeZero

isNegativeZero: (Anonymous function) = typeof (Object as ObjectWithIs).is !== "undefined"? (x: number) => (Object as ObjectWithIs).is!(x, -0): (x: number) => x === 0 && (1 / x < 0)

Returns true if the argument is -0, false otherwise.

log2

log2: function = ((Math as { log2?: (x: number) => number})).log2 || log2Shim

Returns base 2 logarithm.

Note that result approximation is implementation-dependent. If result is to be used in bit masks, use Math.round() on it.

In ES2015, Math.log2.

Type declaration

    • (x: number): number
    • Parameters

      • x: number

      Returns number

Generated using TypeDoc