mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 17:03:32 +03:00
0d495ffd97
Resolves #9607 by computing `Number.hash` by converting given number to `Float` first and then computing the hash. Also the conversion from `Float.to Decimal` is exact - done via `new BigDecimal(double)`. There is `Decimal.new` that handles the user-friendly conversion. However as a result `Decimal.from 2.1 != Decimal.new 2.1` - that's the only way to ensure consistency between hash code and conversions. |
||
---|---|---|
.. | ||
src | ||
package.yaml |