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

isPositiveZerof

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

Usage

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

isPositiveZerof( x )

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

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

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

Examples

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

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

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

bool = isPositiveZerof( 5.0 );
// returns false

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

bool = isPositiveZerof( NaN );
// returns false