Working with PTC Mathcad Prime > Working with Math Expressions > Entering Math Expressions > To Enter Binary, Octal, and Hexadecimal Numbers
To Enter Binary, Octal, and Hexadecimal Numbers
Before entering binary, octal, or hexadecimal numbers, make sure to select the Bin/Oct/Hex Mode. You can set the calculation mode in Calculation > Calculation Options.
Entering Binary Numbers
1. Type the digits making up the number. Valid digits are the numbers 0 and 1.
2. Type the letter b following the last digit in the number.
For example: 1101b
Entering Octal Numbers
1. Type the digits making up the number which must be real. Valid digits are the numbers 0 through 7.
2. Type the letter o following the last digit in the number.
For example: 32o
Entering Hexadecimal Numbers
1. When the first digit of the number is one of the letters A through F, you must start that number with a 0. If you do not start the number with a zero, any expression you type will be interpreted as a variable and not as a number.
2. Type the digits making up the number. Valid digits are the numbers 0 through 9 and the letters A through F.
3. Type the letter h following the last digit in the number.
For examples: 2b3ch , 0a32h
* 
PTC Mathcad may add the implied multiplication operator between the final digit and the letter for binary, hexadecimal, or octal numbers. The system may also place the implied multiplication operator between other characters and numbers. You can delete these operators by clicking on the expression. Capital letters B, O and H can also be used, but they will always add the implied multiplication operator between the final digit and the letter.
Was this helpful?