solidity/test/libsolidity/syntaxTests/denominations/fixed_point_division.sol
2022-04-01 23:41:18 -05:00

7 lines
323 B
Solidity

contract C {
uint constant a = 4 ether / 3 hours;
ufixed constant b = ufixed(4 ether / 3 hours);
}
// ----
// TypeError 2326: (32-49='4 ether / 3 hours'): Type rational_const 10000000000000000 / 27 is not implicitly convertible to expected type uint256. Try converting to type ufixed256x62 or use an explicit conversion.