solidity/test/libsolidity/semanticTests/fixedPoint/conversion2.sol
2021-10-06 13:56:25 +02:00

11 lines
297 B
Solidity

contract C {
function test() public pure returns (fixed64x3, fixed128x4, ufixed64x4) {
fixed64x4 x = fixed64x4(-1.12346789);
return (fixed64x3(x), fixed128x4(x), ufixed64x4(x));
}
}
// ====
// compileViaYul: also
// ----
// test() -> -1.123, -1.1234, 1844674407370954.0382