|   Introduction to Number Systems | ![]() |
|
MHS makes use of 4 numbering systems in various areas. The 4 numbering systems are decimal, hexadecimal, octal, and binary. Each number system has a base, which is used to convert it from a set of digits to a numeric value. For example, the digits 316 can be converted to a base-10 number using the formula (3×10²)+(1×10¹)+6, which equals 316. The 3, 1, and 6 come from the digits, and the 10 comes from the base. The following chart explains the 4 numbering systems used.
Bits and BytesA digit of a binary number is called a bit. 8 bits make a byte, which is the smallest data type. Since a byte has 8 bits, its range is from 0 to 255, inclusive. See Data Types for more information.
Entering NumbersSome edit boxes in MHS allow both decimal and hexadecimal input. In cases where both types of numbers are allowed, you must prefix a number with 0x to indicate it is hexadecimal. In some cases, only hexadecimal numbers are allowed, and in those cases it is not required (and sometimes forbidden) to use the 0x prefix. |
Copyright © 2006 Shawn (L. Spiro) Wilcoxen |