mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
17 lines
386 B
Solidity
17 lines
386 B
Solidity
contract C {
|
|
function f() public pure returns (fixed[2] memory ret) {
|
|
ret[0] = 0.00000000000001;
|
|
ret[1] = 11111111111111.1;
|
|
}
|
|
function g() public pure returns (fixed[] memory ret) {
|
|
ret = new fixed[](3);
|
|
ret[0] = 998.888888;
|
|
ret[1] = 44.1100000000011;
|
|
ret[2] = 888888888888888888.4400001;
|
|
}
|
|
}
|
|
// ----
|
|
// f() ->
|
|
// g() ->
|
|
|