| Line 12: |
Line 12: |
| | For Example, | | For Example, |
| | | | |
| − | HEX2OCT("A",4) ''returns '0012'' | + | HEX2OCT("A",4) ''returns 0012'' |
| | | | |
| − | HEX2OCT("FA") ''returns 000372'' | + | HEX2OCT("FA",6) ''returns 000372'' |
| | | | |
| | HEX2OCT("09") ''returns 0000000011'' | | HEX2OCT("09") ''returns 0000000011'' |
| Line 34: |
Line 34: |
| | *If 'places' are non-numeric, Calci returns an #ERROR message. | | *If 'places' are non-numeric, Calci returns an #ERROR message. |
| | | | |
| − | *If 'places' is negative, Calci ignores the places and displays the octal output. | + | *If 'places' 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 a 10 digit octal output. | + | *If 'places' is omitted, Calci displays the octal output by adding the leading zeros (if required) to make a 10 digit output. |
| | | | |
| | == Examples == | | == Examples == |
| Line 46: |
Line 46: |
| | | | |
| | |- class="odd" | | |- class="odd" |
| − | | class="sshl_f" | | + | | class="sshl_f" | HEX2OCT("44F",5) |
| − | | class="sshl_f" | | + | | class="sshl_f" | 02117 |
| | | | |
| | |- class="even" | | |- class="even" |
| − | | class="ssh1_f" | | + | | class="ssh1_f" | HEX2OCT("17") |
| − | | class="sshl_f" | | + | | class="sshl_f" | 0000000027 |
| | | | |
| | |- class="odd" | | |- class="odd" |
| − | | class="ssh1_f" | | + | | class="ssh1_f" | HEX2OCT(D1C,-3) |
| − | | class="sshl_f" | | + | | class="sshl_f" | 6434 |
| | | | |
| | |- class="even" | | |- class="even" |
| − | | class="ssh1_f" | | + | | class="ssh1_f" | HEX2OCT("FFFFFFFEEE") |
| − | | class="sshl_f" | | + | | class="sshl_f" | 7777777356 |
| | | | |
| | |} | | |} |