time-to-botec/squiggle/node_modules/@stdlib/math/base/assert/is-negative-zero/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.5 KiB

isNegativeZero

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

Usage

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

isNegativeZero( x )

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

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

bool = isNegativeZero( 0.0 );
// returns false

Examples

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

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

bool = isNegativeZero( 0.0 );
// returns false

bool = isNegativeZero( 5.0 );
// returns false

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

bool = isNegativeZero( NaN );
// returns false