mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
276 B
Solidity
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
|