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
Given: value = Decimal.parse('1.7976931348623157e+310') When: value.toStringAsExponential(10) Then: Infinity Expected: In my specific Use case I was expecting Decimal.parse('1.7976931348623157e+310').isInfinite to be true, but I guess that if the toStringAsExponential(10) returned 1.7976931348e+310 that would be expected as well.
PS: the limit seems to be Decimal.parse('1.7976931348623158e+308').toStringAsExponential(10)
The text was updated successfully, but these errors were encountered:
For the time being that limit is actually ok for my use-case. Feel free to close it if you want or to leave it open if you feel that this is something that this lib will be able to handle.
Given:
value = Decimal.parse('1.7976931348623157e+310')
When:
value.toStringAsExponential(10)
Then:
Infinity
Expected: In my specific Use case I was expecting
Decimal.parse('1.7976931348623157e+310').isInfinite
to be true, but I guess that if thetoStringAsExponential(10)
returned1.7976931348e+310
that would be expected as well.PS: the limit seems to be
Decimal.parse('1.7976931348623158e+308').toStringAsExponential(10)
The text was updated successfully, but these errors were encountered: