Wednesday, October 3, 2012

How to convert decimal number into hexadecimal,binary and octal number.

Model : CASIO  fx-991MS, CASIO fx-570MS
 
Natural number or decimal numbers that we use for our calculation have base 10. There are other format of number like hexadecimal,binary,octal that have base16,2 and 8 respectively. These type of number are often used in programming sector. Base mode of calculator can be used for conversion of such numbers into one another.

Example: Solve (17)10 = (?)2 = (?)16 = (?)8.(what is the value of 17 if it is converted in binary (base 2),
hexadecimal (base 16), octal(base 8) format).(Ans : (10001)2, (11)16, (21)8 )

Solution:

(Mode initialization)
MODE >> MODE >> 3(BASE)

 x2 >> 1 >> 7 >> = >> log(Binary format) >>(Hexadecimal Format) >> ln(Octal format)

You can't use scientific functions in base mode.Also you can't give input a number that has a decimal part (Ex: 101.11, 12.35 etc)

Example: Convert (512)10 into binary number.

Solution:

(Mode initialization)
MODE >> MODE >> 3(BASE)

 x2 >> 5 >> 1 >> 2 >> = >> log(Math Error)

The result "Math Error" indicates that the result has too many digits(overflow).
You may not be able to convert a value from a number whose calculation range is greater than the calculation range of the resulting number system. This type of calculator can convert to binary number up-to 511.

The following are the allowable ranges for each of the available number systems.

Binary:  1000000000
x 1111111111
                             0 x ≤  0111111111

Octal :   4000000000
x 7777777777
                               0 x 3777777777

Decimal : -2147483648 x 2147483647

Hexadecimal : 80000000 x FFFFFFFF
                                  0 x 7FFFFFFF