Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@stdlib/constants-float64-smallest-normal
Advanced tools
Smallest positive double-precision floating-point normal number.
@stdlib/constants-float64-smallest-normal is a package that provides the smallest positive normalized double-precision floating-point number, which is a fundamental constant in numerical computing.
Accessing the Smallest Normalized Float64 Constant
This feature allows you to access the smallest positive normalized double-precision floating-point number. The code sample demonstrates how to require the package and log the constant value.
const SMALLEST_NORMAL = require('@stdlib/constants-float64-smallest-normal');
console.log(SMALLEST_NORMAL);
The math-constants package offers a collection of mathematical constants, including the smallest positive normalized double-precision floating-point number. It is comparable to @stdlib/constants-float64-smallest-normal but includes additional constants for various mathematical computations.
Smallest positive normalized double-precision floating-point number.
npm install @stdlib/constants-float64-smallest-normal
var FLOAT64_SMALLEST_NORMAL = require( '@stdlib/constants-float64-smallest-normal' );
Smallest positive normalized double-precision floating-point number.
var bool = ( FLOAT64_SMALLEST_NORMAL === 2.2250738585072014e-308 );
// returns true
var FLOAT64_SMALLEST_NORMAL = require( '@stdlib/constants-float64-smallest-normal' );
console.log( FLOAT64_SMALLEST_NORMAL );
// => 2.2250738585072014e-308
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.
FAQs
Smallest positive double-precision floating-point normal number.
The npm package @stdlib/constants-float64-smallest-normal receives a total of 107,646 weekly downloads. As such, @stdlib/constants-float64-smallest-normal popularity was classified as popular.
We found that @stdlib/constants-float64-smallest-normal 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.