Skip to content

Will Decimal be deterministic? #189

Description

@ValorZard

Hello all!
I’ve spent a lot of time working on video game networking, and floats are the bane of my existence. Turns out floats are basically non deterministic, unless you’re really really careful (and sadly JavaScript compilers are not careful with them.)
(See these two articles for more information:
https://gafferongames.com/post/floating_point_determinism/
https://andrea-jens.medium.com/i-wanna-make-a-fighting-game-a-practical-guide-for-beginners-part-5-f049a78ddc5b)
If Decimals are added to JavaScript, will they be cross platform deterministic? If so that would be amazing!

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