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

6 lines
237 B
Solidity

contract A {
fixed40x40 pi = 3.14;
}
// ----
// TypeError 2326: (33-37='3.14'): Type rational_const 157 / 50 is not implicitly convertible to expected type fixed40x40. Try converting to type ufixed16x2 or use an explicit conversion.