mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
514 B
Solidity
12 lines
514 B
Solidity
contract test {
|
|
function f() public pure {
|
|
fixed a = 0.42578125 % -0.4271087646484375;
|
|
fixed b = .5 % a;
|
|
fixed c = a % b;
|
|
a; b; c;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 2271: (117-123): Operator % not compatible with types rational_const 1 / 2 and fixed128x18. Arithmetic operators on fixed point types are not yet supported.
|
|
// TypeError 2271: (143-148): Operator % not compatible with types fixed128x18 and fixed128x18. Arithmetic operators on fixed point types are not yet supported.
|