-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mathematical expression computation bug #361
Comments
This is different between static typed literal and dynamic typed literal. |
anko:
output: result: 0.6666666666666666 python:
So how should anko behave ? |
Try below in anko
|
A part of this |
Python can handle large number as bignum. You need to use math/big in Go or Anko. |
Mathematical expression:
(((2871 * 7446 + (4929 - 3435)) / ((754 * 5717) + (13 * 964))) - (6940 * 2554 * 8394 * 6115 * (811 * 4990 * (4305 + 6293))) - (2399 + 2562 + (8560 / 7616) / (2106 * 3816) / (4516 / 9112) - ((4153 * 5871) / 7072 - 6863) * (3101 + 2727 - (4537 * 3626))))
Correct result: -3.90203449761652E+25
anko result: -2.5772796100513167e+18
The text was updated successfully, but these errors were encountered: