0.0.2 • Published 1 year ago
@stdlib/math-base-special-nanmin v0.0.2
nanmin
Return the minimum value, ignoring NaN.
Installation
npm install @stdlib/math-base-special-nanminUsage
var nanmin = require( '@stdlib/math-base-special-nanmin' );nanmin( x, y )
Returns the minimum value.
var v = nanmin( 4.2, 3.14 );
// returns 3.14
v = nanmin( +0.0, -0.0 );
// returns -0.0If any argument is NaN, the function returns the other operand.
var v = nanmin( 4.2, NaN );
// returns 4.2
v = nanmin( NaN, 3.14 );
// returns 3.14If both arguments are NaN, the function returns NaN.
var v = nanmin( NaN, NaN );
// returns NaNNotice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.