Closed
Description
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.