solidity/test/libsolidity/semanticTests/fixedPoint/constants.sol
Alex Beregszaszi 0fe7d787f3 Add more tests
2021-10-06 13:56:25 +02:00

14 lines
276 B
Solidity

contract C {
function f() public pure returns (fixed) {
return 99.101 * 3.1;
}
function g() public pure returns (fixed128x2) {
return fixed128x2(-1/3);
}
}
// ====
// compileViaYul: also
// ----
// f() -> 307.213100000000000000
// g() -> -0.33