Octal: Difference between revisions

300 bytes added ,  14 years ago
m
m (→‎Uses: Reference to PDP-11)
 
(3 intermediate revisions by 2 users not shown)
Line 6:
The octal number system was used widely in the Electronics and Computer Industry, as although digital electronics is based on gates with only two states and is therefore fundamentally binary, binary numbers can quickly become long and hard to transcribe without errors. Their octal equivalents are much shorter and easier to remember, and have a straight-forward way of conversion to/from binary.
 
The [http://en.wikipedia.org/wiki/Pdp-11 PDP-11] ofcomputer made by the [http://en.wikipedia.org/wiki/Digital_Equipment_Corporation DECDigital Equipment Corporation] used exclusivelythe octal numeric system exclusively for displaying memory addresses and content.
 
[[Unix]] file system permissions have three sets (user, group, others) of three bit permissions (read, write, execute), which is naturally represented in octal.
The use of octal numbers has declined as most modern computers no longer base their word length on multiples of three bits, (they are based on multiples of four bits).
 
The use of octal numbers has declined as most modern computers no longer base their word length on multiples of three bits, (they are based on multiples of four bits, so [[hexadecimal]] is more widely used).
 
== Comparing counts from zero in different number systems ==
C.f. [[Common number base conversionsformatting]] and [[Common number base parsing]]
Binary
Octal
Line 41 ⟶ 43:
# Split a binary number into groups of three digits, counting from right to left.
# Pad the leftmost group of binary digits with zeros on their left if their are less than three digits.
# Use the following table to translate each group of fourthree binary digits, in order, to its octal equivalent.
Binary digits
Octal equivalent digit
Anonymous user