solidity/test/libsolidity/semanticTests/literals/scientific_notation.sol
2023-05-11 10:56:55 -05:00

33 lines
541 B
Solidity

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;
}
}
// ----
// f() -> 20000000000
// g() -> 2
// h() -> 25
// i() -> -20000000000
// j() -> -2
// k() -> -25