We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df085d0 + a3b4e14 commit bf64bc6Copy full SHA for bf64bc6
src/main/java/com/conversions/DecimalToHexadecimal.java
@@ -16,7 +16,7 @@ public String decimalToHex(String decimalStr){
16
17
int rem;
18
String hex = "";
19
- while(decimal.compareTo(BigInteger.ZERO) > 0) {
+ while (decimal.compareTo(BigInteger.ZERO) > 0) {
20
rem = decimal.mod(valueHex).intValueExact();
21
hex = hexChars[rem] + hex;
22
decimal = decimal.divide(valueHex);
0 commit comments