Last active
February 2, 2023 18:28
-
-
Save codeWhizperer/33ab9ae7e311ef9de3d7b32ff0d64b49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //@Ademola Kelvin | |
| contract Conversions { | |
| function explicit256To8() public pure returns (uint8) { | |
| uint256 a = 2022; | |
| uint8 b = uint8(a); | |
| return b; // 230. | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment