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
When trying to calculate 10e18*1e18/110e18 chisel does not give any output. But for instance for 10e18*1e18/100e18 or 10e18*1e18/90e18 or even 10e18*1e18/200e18 it does. When dividing with anything from 101e18 to 199e18 it does not output anything. Same thing happens when dividing with 201e18 etc.
The text was updated successfully, but these errors were encountered:
Compiler errors:
Error (4486): Type rational_const 1000000000000000000 / 11 is not implicitly convertible to expected type uint256. Try converting to type ufixed256x60 or use an explicit conversion.
--> ReplContract.sol:14:9:
|
14 | uint256 x = 10e18*1e18/110e18;
|
with #6647 the error is now logged if run with -vvv, perhaps we should always log them, but could be noisy
Component
Chisel
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (3d6bfdd 2023-12-16T00:17:23.049683682Z)
What command(s) is the bug in?
chisel
Operating System
Linux
Describe the bug
When trying to calculate
10e18*1e18/110e18
chisel does not give any output. But for instance for10e18*1e18/100e18
or10e18*1e18/90e18
or even10e18*1e18/200e18
it does. When dividing with anything from101e18
to199e18
it does not output anything. Same thing happens when dividing with201e18
etc.The text was updated successfully, but these errors were encountered: