Created
January 13, 2017 14:41
-
-
Save M-ZubairAhmed/42ad3f496bbc0ddd17f9b785c6f5b0b6 to your computer and use it in GitHub Desktop.
Conversion from a Decimal Number to Binary & Hexadecimal Number
This file contains 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
int decimalNum; | |
//Converts decimal number to binary, where regex is 2 | |
Integer.toString(decimalNum,2); | |
//Converts decimal number to hexadecimal, where regex is 16 | |
Integer.toString(decimalNum,16); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment