|
@@ -1,10 +1,3 @@
|
1
|
|
-
|
2
|
|
-/**
|
3
|
|
- * Write a description of class NumSystemsConverter here.
|
4
|
|
- *
|
5
|
|
- * @author (your name)
|
6
|
|
- * @version (a version number or a date)
|
7
|
|
- */
|
8
|
1
|
public class NumSystemsConverter
|
9
|
2
|
{
|
10
|
3
|
// Decimal to binary converter
|
|
@@ -34,8 +27,7 @@ private String fractionalToBinary(double num, int precision) {
|
34
|
27
|
}
|
35
|
28
|
|
36
|
29
|
// display mode is sent along with displayNumber, could also be defined globally)
|
37
|
|
-
|
38
|
|
-public class String updateDisplayNumber(double displayNumber,int mode){
|
|
30
|
+public String updateDisplayNumber(double displayNumber,int mode){
|
39
|
31
|
String str="";
|
40
|
32
|
switch(mode) {
|
41
|
33
|
case 1:{
|
|
@@ -62,3 +54,5 @@ switch(mode) {
|
62
|
54
|
return str;
|
63
|
55
|
}
|
64
|
56
|
}
|
|
57
|
+
|
|
58
|
+
|