You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation for BufferwriteDoubleLE/writeDoubleBE is confusing #22158
The documentation for these methods has the following:
buf.writeDoubleBE(0xdeadbeefcafebabe, 0);
However 0xdeadbeefcafebabe a particularly poor value choice. To the naive reader, it implies this method is for writing 64-bit integers, and that JS supports 64 bit integers (which it doesn't. E.g. (0xdeadbeefcafebabe).toString(16) yields deadbeefcafeb800).
It would be clearer if the example used something like 1234.5678 or Math.PI or 1.2345e67 .
Activity
pranshuchittora commentedon Aug 7, 2018
Fixed : #22170
doc: improve examples in buffer docs
doc: improve examples in buffer docs
doc: improve examples in buffer docs
doc: improve examples in buffer docs