Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
to-float32
Advanced tools
Convert data to float32 array or get float32 fractions
Weekly downloads
Readme
Dirty little helper to convert array to float32 array or return round remainder of converting to float32. Useful for sending data to webgl buffers.
let {float32, fract32} = require('to-float32')
let data = Array.from({length: 1024}, Math.random)
// create float32 data
let buffer = float(data)
// get float32 remainders
let fractBuffer = fract32(data)
// convert number to float32
let f32 = float32(0.1) // 0.10000000149011612
// get float32 number remainder
let rem32 = fract32(0.1) //
Fract data is Float32Array with values calculated as origValue - float32value
(c) 2017 Dmitry Yv. MIT License
FAQs
Convert data to float32 array or get float32 fractions
The npm package to-float32 receives a total of 153,894 weekly downloads. As such, to-float32 popularity was classified as popular.
We found that to-float32 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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.