![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
pure javascript IEEE 754 32-bit and 64-bit floating point binary conversion
IEEE 754 32-bit and 64-bit floating point JavaScript binary conversion
Read and write 32-bit and 64-bit floating-point numbers to either Arrays or nodejs Buffers.
var fp = require('ieee-float');
var output = [];
fp.writeFloatLE(output, 1.5);
// => output = [0, 0, 192, 63]
var val = fp.readFloatBE(output.reverse());
// => 1.5
Store a little-endian 32-bit float into the buffer or array buf
starting at offset
(default 0).
No bounds checking is done, will write past the end of the buffer.
Store a big-endian 32-bit float into the buffer or array buf
starting at offset
.
No bounds checking is done, will write past the end of the buffer.
Extract a little-endian 32-bit float from the buffer or array buf
starting at offset
.
No bounds checking is done, will read past the end of the array and return 0.
Extract a big-endian 32-bit float from the buffer or array buf
starting at offset
.
No bounds checking is done, will read past the end of the buffer and return 0.
Store a little-endian 64-bit double into buf
starting at offset
(default offset 0).
Store a big-endian 64-bit double into buf
starting at offset
(default offset 0).
Extract a little-endian 64-bit double from the bytes in buf
starting at offset
.
Extract a big-endian 64-bit double from the bytes in buf
starting at offset
.
qtimeit=0.21.0 node=8.9.1 v8=6.1.534.47 platform=linux kernel=4.9.0-0.bpo.4-amd64 up_threshold=false
arch=ia32 mhz=4513 cpuCount=8 cpu="Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz"
timeGoal=0.2 opsPerTest=1 forkTests=false
name speed rate
nodejs read float 19,410,324 ops/sec 485 >>
ieee-float read float 86,210,648 ops/sec 2155 >>>>>>>>>>>
nodejs write float 22,589,349 ops/sec 565 >>>
ieee-float write float 296,086,555 ops/sec 7402 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
nodejs read double 17,608,010 ops/sec 440 >>
ieee-float read double 62,516,398 ops/sec 1563 >>>>>>>>
nodejs write double 22,425,025 ops/sec 561 >>>
ieee-float write double 258,465,677 ops/sec 6462 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
FAQs
pure javascript IEEE 754 32-bit and 64-bit floating point binary conversion
The npm package ieee-float receives a total of 821 weekly downloads. As such, ieee-float popularity was classified as not popular.
We found that ieee-float 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.