Skip to content

Commit a3b4e14

Browse files
authored
Update DecimalToHexadecimal.java
1 parent c7f8f77 commit a3b4e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/conversions/DecimalToHexadecimal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public String decimalToHex(String decimalStr){
1616

1717
int rem;
1818
String hex = "";
19-
while(decimal.compareTo(BigInteger.ZERO) > 0) {
19+
while (decimal.compareTo(BigInteger.ZERO) > 0) {
2020
rem = decimal.mod(valueHex).intValueExact();
2121
hex = hexChars[rem] + hex;
2222
decimal = decimal.divide(valueHex);

0 commit comments

Comments
 (0)