Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@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.5 (2021-07-06)
No changes reported for this release.
</section> <!-- /.release --> <section class="release" id="v0.0.4">FAQs
Double-precision floating-point negative infinity.
The npm package @stdlib/constants-float64-ninf receives a total of 243,574 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.