| Line 1: |
Line 1: |
| | =HEX2OCT(number,places)= | | =HEX2OCT(number,places)= |
| | | | |
| − | *Where 'number' is a hexadecimal number to be converted and | + | *Where <math>number</math> is a hexadecimal number to be converted and |
| − | *'places' is the number of characters to be used to display the output. | + | *<math>places</math> is the number of characters to be used to display the output. |
| | | | |
| | HEX2OCT converts a hexadecimal number to its octal equivalent. | | HEX2OCT converts a hexadecimal number to its octal equivalent. |
| Line 18: |
Line 18: |
| | HEX2OCT("09") ''returns 0000000011'' | | HEX2OCT("09") ''returns 0000000011'' |
| | | | |
| − | *'number' must be a hexadecimal number. Hexadecimal number uses digits 0 to 9 and characters A to F. The number can also be entered in text format (e.g "1F"). | + | *<math>number</math> must be a hexadecimal number. Hexadecimal number uses digits 0 to 9 and characters A to F. The number can also be entered in text format (e.g "1F"). |
| | | | |
| | *The most significant bit represents the 'sign' of the number. Negative numbers are represented using 2's complement notation. | | *The most significant bit represents the 'sign' of the number. Negative numbers are represented using 2's complement notation. |
| Line 24: |
Line 24: |
| | *A number preceding with '0' (e.g 013) should be written in text format ("013") to avoid confusion with octal numbers. | | *A number preceding with '0' (e.g 013) should be written in text format ("013") to avoid confusion with octal numbers. |
| | | | |
| − | *Calci returns an #ERROR message if 'number' contains more than 10 characters (10 bits). | + | *Calci returns an #ERROR message if <math>number</math> contains more than 10 characters (10 bits). |
| | <font color = red> Need to verify the 'limit for no. of input digits' after next release </font> | | <font color = red> Need to verify the 'limit for no. of input digits' after next release </font> |
| | | | |
| − | *If 'number' is negative, Calci ignores the places and displays 10 digit octal output. | + | *If <math>number</math> is negative, Calci ignores the places and displays 10 digit octal output. |
| | | | |
| − | *If 'places' is not an integer, it is truncated. | + | *If <math>places</math> is not an integer, it is truncated. |
| | | | |
| − | *If 'places' are non-numeric, Calci returns an #ERROR message. | + | *If <math>places</math> are non-numeric, Calci returns an #ERROR message. |
| | | | |
| − | *If 'places' is negative, Calci ignores the places and uses the minimum number of digits required to display the octal output. | + | *If <math>places</math> is negative, Calci ignores the places and uses the minimum number of digits required to display the octal output. |
| | | | |
| − | *If 'places' is omitted, Calci displays the 10 digit octal output by adding the leading zeros (if required). | + | *If <math>places</math> is omitted, Calci displays the 10 digit octal output by adding the leading zeros (if required). |
| | | | |
| − | *If 'places' is less than the digits required by the output, Calci ignores the places and uses the minimum number of digits required to display the octal output. | + | *If <math>places</math> is less than the digits required by the output, Calci ignores the places and uses the minimum number of digits required to display the octal output. |
| | | | |
| | == Examples == | | == Examples == |