time-to-botec/js/node_modules/@stdlib/math/base/assert/is-negative-zerof/README.md
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

1.6 KiB

isNegativeZerof

Test if a single-precision floating-point numeric value is negative zero.

Usage

var isNegativeZerof = require( '@stdlib/math/base/assert/is-negative-zerof' );

isNegativeZerof( x )

Tests if a single-precision floating-point numeric value is negative zero.

var bool = isNegativeZerof( -0.0 );
// returns true

bool = isNegativeZerof( 0.0 );
// returns false

Examples

var isNegativeZerof = require( '@stdlib/math/base/assert/is-negative-zerof' );

var bool = isNegativeZerof( -0.0 );
// returns true

bool = isNegativeZerof( 0.0 );
// returns false

bool = isNegativeZerof( 5.0 );
// returns false

bool = isNegativeZerof( -1.0 );
// returns false

bool = isNegativeZerof( NaN );
// returns false