Ratika's computer teacher has asked her to convert an octal number to decimal number. Suggest her the method which she should apply in converting the octal number.
Subject - Computer Science ( class 7 )
Answers
Answer:
Converting octal to decimal can be done with repeated division.
• Start the decimal result at 0.
• Remove the most significant octal digit (leftmost) and add it to the result.
• If all octal digits have been removed, you’re done. Stop.
• Otherwise, multiply the result by 8.
• Go to step 2.
Explanation:
The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right). For example, the binary representation for decimal 74 is 1001010.(Source :- Wikipedia)
The decimal numeral system (also called the base-ten positional numeral system, and occasionally called denary /ˈdiːnəri/[1] or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu–Arabic numeral system.[2] The way of denoting numbers in the decimal system is often referred to as decimal notation.(Source :- Wikipedia)