pragma solidity ^0.4.25; contract SimpleStorage { uint256 public myVar; event Test(uint256 x); function testFunc() public { // working:n myVar = (10**40 * 10**40)/10**20; // not working: //myVar = (10**40 * 10**40); emit Test(myVar); } }
0.4.18