GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Documentation for BufferwriteDoubleLE/writeDoubleBE is confusing · Issue #22158 · nodejs/node

Documentation for BufferwriteDoubleLE/writeDoubleBE is confusing #22158

New issue
Copy link
New issue
Copy link
Closed
Closed
Documentation for BufferwriteDoubleLE/writeDoubleBE is confusing#22158
Copy link
Labels
bufferIssues and PRs related to the buffer subsystem.docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.

Description

@broofa
broofa
opened on Aug 6, 2018
Issue body actions

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

  1. ChALkeR
    added
    bufferIssues and PRs related to the buffer subsystem.
    docIssues and PRs related to Node.js documentation.
    on Aug 6, 2018
  2. joyeecheung
    added
    good first issueIssues that are suitable for first-time contributors.
    on Aug 7, 2018
  3. pranshuchittora commented on Aug 7, 2018

    @pranshuchittora
    pranshuchittora
    on Aug 7, 2018
    Contributor
    More actions

    Fixed : #22170

    Reacted by Robert Kieffer
  4. addaleax
    closed this as completedin 9f7efd5on Sep 2, 2018
  5. targos
    added 3 commits that reference this issue on Sep 2, 2018

    doc: improve examples in buffer docs

    c00d113

    doc: improve examples in buffer docs

    c7268c4

    doc: improve examples in buffer docs

    a1f57f4
  6. sjarmak
    added a commit that references this issue on Jul 27, 2026

    doc: improve examples in buffer docs

    9f7efd5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.