![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
nextafter
Advanced tools
Readme
Returns the next floating point number after any given number in the direction of some other floating point number. (Like the C standard library function).
var nextafter = require("nextafter")
var x = 0.1
console.log("The number", x, "is between", nextafter(x, -Infinity), "and", nextafter(x, Infinity))
Output:
The number 0.1 is between 0.09999999999999999 and 0.10000000000000002
npm install nextafter
require("nextafter")(from, to)
Returns the floating point number closest to from
in the direction on of to
from === to
, then returns from
from < to
, then returns next representable float after from
from > to
, then returns the floating point nubmer immediately before from
(c) 2014 Mikola Lysenko. MIT License
FAQs
Find the floating point number immediately after any given number
The npm package nextafter receives a total of 49,989 weekly downloads. As such, nextafter popularity was classified as popular.
We found that nextafter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.