Created
June 4, 2021 05:01
-
-
Save milksense/1af809a293dbabbc22ee95710d6603cc to your computer and use it in GitHub Desktop.
Decimal to Hexadecimal converter
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
const hex = (e: number): string => '0x' + e .toString(16); | |
/* Usage: console.log(hex(255)) */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment