Documentation for BufferwriteDoubleLE/writeDoubleBE is confusing #22158
Labels
buffer
Issues and PRs related to the buffer subsystem.
doc
Issues and PRs related to the documentations.
good first issue
Issues that are suitable for first-time contributors.
The documentation for these methods has the following:
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)
yieldsdeadbeefcafeb800
).It would be clearer if the example used something like
1234.5678
orMath.PI
or1.2345e67
.The text was updated successfully, but these errors were encountered: