Skip to content

Floating point value decoded incorrectly by buf.readDoubleBE() #18208

Closed
@DavidRusso

Description

@DavidRusso
  • Version: v9.4.0
  • Platform: Windows 10 Pro x64 Version 1709 (OS Build 16299.192)
  • Subsystem: Buffer

example_js.txt

The attached example produces the output:

246800 encodes to 410e208000000000
410e208000000000 decodes to 246800.03176522627

The expected result is:

246800 encodes to 410e208000000000
410e208000000000 decodes to 246800

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.confirmed-bugIssues with confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions