Mathematical helper developed in Java that allows the user to convert any number (integer or fractional) from one numeral system to another. Command-line based.
A text-based mathematical helper application built in Java. The program converts any kind of number (both integers and fractionals) from one numeral system to another, according to its base (radix). The later can range from 1 to 36. Among the most popular numeral systems it can convert from and to are:
Apart from integers, the program also allows the user to convert fractional numbers in between two differente base systems.
In order to execute it, the user needs to enter three symbols, each in a different line:
If any one of the inputs entered by the user is not validated by the program (for instance, if one of the numbers representing a radix goes beyond the accepted number range - from 1 to 36 - or if the symbol representing the number can not be converted to the given radix), the user is presented with an error message
Example 1:
Input:
10
0.234
7
Output:
0.14315
Example 2:
Input:
10
10.234
7
Output:
13.14315
Example 3:
Input:
35
af.xy
17
Output:
148.g88a8
Example 4:
Input:
16
aaaaa.0
24
Output:
22df2.00000
Example 5:
Input:
21
4242
6
Output:
451552
Example 6:
Input:
1
1111111
10
Output:
7