Skip to content

Float reading and writing is inconstent on Kotlin JS #322

@Burtan

Description

@Burtan

Hey,
the following snippet

"test float to bytes" {
    val buffer = Buffer()
    buffer.writeFloat(0.999f)
    buffer.readFloat() shouldBe 0.999f
}

gives this result.

AssertionFailedError:
Expected :0.999
Actual   :0.9990000128746033

JVM works fine.

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