solidity/test/libsolidity/semanticTests/literals/scientific_notation.sol
2020-03-19 14:42:25 +01:00

37 lines
574 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;
}
}
// ====
// compileViaYul: also
// ----
// f() -> 20000000000
// g() -> 2
// h() -> 25
// i() -> -20000000000
// j() -> -2
// k() -> -25