Skip to content

Use integer power "**" operator for integer types #210

Closed
@MaxGraey

Description

@MaxGraey

Once day Vitalik Buterin published this twit about one counter example in Javascript using Fermat's Last Theorem:

57055**3 + 339590**3 == 340126**3
> true

That's happened because JS/TS using float point numbers all the time except logical ops.
In AS we have more rich set of types but power (**) operator still use Math.pow under the hood. This unfortunately cause to the same problem as in JS/TS and increase size of code btw.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions