DEV Community

SIC
SIC

Posted on

Solidity Problem

1_00_0_0 is allowed in solidity?
11_00_00_34 is allowed in solidity?
1_1e2_2 is allowed in solidity?
11_11e22_22 is allowed in solidity?
-1_22 is allowed in solidity?

Now, I am hesitated when I am asking ChatGPT as
Allowed: 10_000_000
Not allowed: 1_000_000 (multiple consecutive underscores)
Not allowed: 10_00_00_00 (underscore not between two digits)

even solidity documentation proves 1_2e345_678 are all valid.
but chatGPT isn't allowed.

who is right?

Top comments (0)