I am trying to replicate a Perl and PHP style package and unpack functions in JavaScript.
Unsigned integers were light enough, so my package ('n') and pack ('N') are fine. But now I have a shortage of computer science - an obstacle, and I don’t know where to start with the package ('d') for packing standard JavaScript floating point.
Is there a JavaScript library there?
If not, is there a good resource where I can learn this? I am well versed in bitwise and binary level operations in JS, I just don't know where to start with logic.
Thank.
source
share