JavaScript pack integers and calculate arbitrary precision float:
问题 I need to do the following in JavaScript and so far been unable to find solutions to do it seamlessly: Grab two integers in a specific order and pack them like Python's struct module. This packed value, (bonus for supporting different endianness than host) will be turned into a 64 bit float (double). They must be arbitrary thus I might get an exponent representation of the integer (say, they could be 0xdeadbeef and 500): In exp form: 1.0883076389305e-311 1.0883076389305000 * 10 ^ - 311 I need