
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
@stdlib/constants-float64-ninf
Advanced tools
@stdlib/constants-float64-ninf is a package that provides a constant representing the negative infinity value for double-precision floating-point numbers (float64). This can be useful in various mathematical computations and algorithms where the concept of negative infinity is required.
Negative Infinity Constant
This feature provides the negative infinity constant, which can be used in mathematical operations and comparisons where negative infinity is a meaningful value.
const ninf = require('@stdlib/constants-float64-ninf');
console.log(ninf); // -Infinity
The 'math-constants' package includes a collection of mathematical constants, such as Pi, Euler's number, and both positive and negative infinity. It is more comprehensive compared to @stdlib/constants-float64-ninf, which focuses solely on the negative infinity constant.
Double-precision floating-point negative infinity.
npm install @stdlib/constants-float64-ninf
var FLOAT64_NINF = require( '@stdlib/constants-float64-ninf' );
Double-precision floating-point negative infinity.
var bool = ( FLOAT64_NINF === -Infinity );
// returns true
var FLOAT64_NINF = require( '@stdlib/constants-float64-ninf' );
console.log( FLOAT64_NINF );
// => -Infinity
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.
See LICENSE.
Copyright © 2016-2021. The Stdlib Authors.
0.0.4 (2021-06-27)
No changes reported for this release.
</section> <!-- /.release --> <section class="release" id="v0.0.3">FAQs
Double-precision floating-point negative infinity.
The npm package @stdlib/constants-float64-ninf receives a total of 327,957 weekly downloads. As such, @stdlib/constants-float64-ninf popularity was classified as popular.
We found that @stdlib/constants-float64-ninf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.