Test if a double-precision floating-point numeric value is negative zero.
var isNegativeZero = require( '@stdlib/math/base/assert/is-negative-zero' );
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
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
@stdlib/math/base/assert/is-positive-zero
: test if a double-precision floating-point numeric value is positive zero.