time-to-botec/js/node_modules/@stdlib/math/base/assert/is-positive-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

isPositiveZero

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

Usage

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

isPositiveZero( x )

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

var bool = isPositiveZero( 0.0 );
// returns true

bool = isPositiveZero( -0.0 );
// returns false

Examples

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

var bool = isPositiveZero( 0.0 );
// returns true

bool = isPositiveZero( -0.0 );
// returns false

bool = isPositiveZero( 5.0 );
// returns false

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

bool = isPositiveZero( NaN );
// returns false