uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Division of an integer by a float that returns a number too close to 0 raises an exception #1028

Closed JuanFdS closed 7 years ago

JuanFdS commented 7 years ago

For example:

0 / 100.0 wollok.lang.Exception: For input string: "0E+1" at wollok.lang.Integer./(other) [/lang.wlk:1027]

1 / 100000000000.0 wollok.lang.Exception: For input string: "1E-11" at wollok.lang.Integer./(other) [/lang.wlk:1027]

It seems to have something to do with numbers in scientific notation.

fdodino commented 7 years ago

See PR #1025