Base utilities for single-precision floating-point numbers.
var ns = require( '@stdlib/number/float32/base' );Base utilities for single-precision floating-point numbers.
var o = ns;
// returns {...}add( x, y ): compute the sum of two single-precision floating-point numbers.assert: base single-precision floating-point number assert functions.div( x, y ): divide two single-precision floating-point numbers.exponentf( x ): return an integer corresponding to the unbiased exponent of a single-precision floating-point number.fromBinaryStringf( bstr ): create a single-precision floating-point number from an IEEE 754 literal bit representation.fromWordf( word ): create a single-precision floating-point number from an unsigned integer corresponding to an IEEE 754 binary representation.identity( x ): evaluate the identity function of a single-precision floating-point number.mul( x, y ): multiply two single-precision floating-point numbers.normalizef(): return a normal numberyand exponentexpsatisfyingx = y * 2^exp.signbitf( x ): return a boolean indicating if the sign bit for a single-precision floating-point number is on (true) or off (false).significandf( x ): return an integer corresponding to the significand of a single-precision floating-point number.sub( x, y ): subtract two single-precision floating-point numbers.toBinaryStringf( x ): return a string giving the literal bit representation of a single-precision floating-point number.float32ToInt32( x ): convert a single-precision floating-point number to a signed 32-bit integer.float32ToUint32( x ): convert a single-precision floating-point number to an unsigned 32-bit integer.toWordf( x ): return an unsigned 32-bit integer corresponding to the IEEE 754 binary representation of a single-precision floating-point number.ulpdiff( x, y ): compute the number of representable single-precision floating-point values that separate two single-precision floating-point numbers along the real number line.
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/number/float32/base' );
console.log( objectKeys( ns ) );