• Just to add:

    $ ./espruino
    >(new Float64Array([101.5])).buffer
    =new Uint8Array([0, 0, 0, 0, 0, 96, 89, 64]).buffer
    
    $ node
    > (new Float64Array([101.5])).buffer
    ArrayBuffer { byteLength: 8 }
    > new Uint8Array((new Float64Array([101.5])).buffer)
    Uint8Array [ 0, 0, 0, 0, 0, 96, 89, 64 ]
    

    So this would appear not to be a parsing issue (like 1573) but is to do with the rounding code itself

About

Avatar for Gordon @Gordon started