mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
326 B
Solidity
16 lines
326 B
Solidity
contract C {
|
|
function literalToUFixed() public pure {
|
|
ufixed8x2 a = 0.10;
|
|
ufixed8x2 b = 0.00;
|
|
ufixed8x2 c = 2.55;
|
|
a; b; c;
|
|
}
|
|
function literalToFixed() public pure {
|
|
fixed8x1 a = 0.1;
|
|
fixed8x1 b = 12.7;
|
|
fixed8x1 c = -12.8;
|
|
a; b; c;
|
|
}
|
|
}
|
|
// ----
|