You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A value smaller than Double.MAX_VALUE and bigger than Long.MAX_VALUEdoes not fit in double, because it is automatically converted to EnsoBigInteger.
The aforementioned semantics work differently than host polyglot API. Long value should fit in long. A value smaller than Double.MAX_VALUE and bigger than Long.MAX_VALUEshould fit in double. Am I right?
The text was updated successfully, but these errors were encountered:
This is no inconsistency. I have just not correctly understood the definition of double and long. The tests will remain in the code base, and I have added comments in - 1826dde . Closing this issue.
While working on #11468, I revealed an inconsistency in how we respond to some polyglot messages: https://github.com/enso-org/enso/pull/11468/files#r1859020769
The issue is in the following newly added tests (all of which are passing on develop):
enso/engine/runtime-integration-tests/src/test/java/org/enso/interpreter/test/BigNumberTest.java
Lines 182 to 216 in 19328ac
Revealed inconsistencies
According to Enso polyglot API:
Double.MAX_VALUE
and bigger thanLong.MAX_VALUE
does not fit in double, because it is automatically converted toEnsoBigInteger
.The aforementioned semantics work differently than host polyglot API. Long value should fit in long. A value smaller than
Double.MAX_VALUE
and bigger thanLong.MAX_VALUE
should fit in double. Am I right?The text was updated successfully, but these errors were encountered: