Skip to content

Commit a386e67

Browse files
authored
Bug Fix : calculate -> maxDigitBase2 = base2 - 1;
1 parent 4ca0ef6 commit a386e67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BaseConversionAlgorithm V2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ int main()
103103
cin >> fractionLimit;
104104
cout << "SAVE OUTPUT (1=YES 0=NO) = ";
105105
cin >> save;
106+
maxDigitBase2 = base2 - 1;
106107
goto begining;
107108
}
108109
else if (choice == 3)
@@ -288,3 +289,4 @@ int main()
288289

289290
return 0;
290291
}
292+

0 commit comments

Comments
 (0)