2020-03-09 21:14:07 +00:00
|
|
|
contract C {
|
|
|
|
function f() public returns(uint) {
|
|
|
|
return 2e10 wei;
|
|
|
|
}
|
|
|
|
|
|
|
|
function g() public returns(uint) {
|
|
|
|
return 200e-2 wei;
|
|
|
|
}
|
|
|
|
|
|
|
|
function h() public returns(uint) {
|
|
|
|
return 2.5e1;
|
|
|
|
}
|
|
|
|
|
|
|
|
function i() public returns(int) {
|
|
|
|
return -2e10;
|
|
|
|
}
|
|
|
|
|
|
|
|
function j() public returns(int) {
|
|
|
|
return -200e-2;
|
|
|
|
}
|
|
|
|
|
|
|
|
function k() public returns(int) {
|
|
|
|
return -2.5e1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2021-03-12 23:02:36 +00:00
|
|
|
// compileViaYul: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 20000000000
|
|
|
|
// g() -> 2
|
|
|
|
// h() -> 25
|
|
|
|
// i() -> -20000000000
|
|
|
|
// j() -> -2
|
|
|
|
// k() -> -25
|