Skip to content

floating-point-bytes->real and real->floating-point-bytes are not inverses for all inputs #4487

@tonyg

Description

@tonyg

What version of Racket are you using?
v8.5.0.2 [cs]

What program did you run?

(define input (bytes #x7f #x80 #x01 #x01))
(equal? input (real->floating-point-bytes (floating-point-bytes->real input #t 0 4) 4 #t))

What should have happened?
It should have answered #t, but it answered #f, because real->floating-point-bytes yielded (bytes #x7f #xc0 #x01 #x01).

Please include any other relevant details
x86_64 Debian linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions