Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2145,15 +2145,16 @@ endian). `value` *should* be a valid 64-bit double. Behavior is undefined when
```js
const buf = Buffer.allocUnsafe(8);

buf.writeDoubleBE(0xdeadbeefcafebabe, 0);
buf.writeDoubleBE(123.456, 0);

console.log(buf);
// Prints: <Buffer 43 eb d5 b7 dd f9 5f d7>
// Prints: <Buffer 40 5e dd 2f 1a 9f be 77>

buf.writeDoubleLE(0xdeadbeefcafebabe, 0);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linter issue:

  2152:1  error  More than 1 blank line not allowed  no-multiple-empty-lines

buf.writeDoubleLE(123.456, 0);

console.log(buf);
// Prints: <Buffer d7 5f f9 dd b7 d5 eb 43>
// Prints: <Buffer 77 be 9f 1a 2f dd 5e 40>
```

### buf.writeFloatBE(value, offset)
Expand Down