Skip to content

Latest commit

 

History

History

is-negative-zero

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

isNegativeZero

Test if a numeric value is negative zero.

Usage

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

isNegativeZero( x )

Tests if a 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