Download PlanMaker 2006 User Guide

Transcript
DEC2HEX(42, 1) returns the error value #NUM! because the number 42
cannot be represented with fewer than 2 hexadecimal digits
DEC2HEX(-42) returns FFFFFFD6
See also:
HEX2DEC, DEC2BIN, DEC2OCT
DEC2OCT (decimal number to octal number)
Syntax:
DEC2OCT(Number [, Digits])
Description:
Converts the given decimal number (base 10) to a octal number (base 8).
Number is the number to be converted. It must be in the range -(2^31)
to (2^31)-1. Negative numbers have to be transformed to two's complement notation (see last example).
The optional argument Digits lets you specify the number of places to
be displayed. If omitted, PlanMaker determines the number of required
places automatically.
Digits has to be greater than zero. If Digits is smaller than the minimum
number of places required to display the number, the function returns a
#NUM error value.
Digits will be ignored if Number is negative.
Example:
DEC2OCT(42) returns 52
DEC2OCT(42, 8) returns 00000052
DEC2OCT(42, 1) returns the error value #NUM! because the number 42
cannot be represented with fewer than 2 octal digits
DEC2OCT(-42) returns 37777777726
See also:
OCT2DEC, DEC2BIN, DEC2HEX
DECIMALS (decimals of a number)
Syntax:
DECIMALS(Number)
Description:
Returns the decimals of the given number (by removing the digits to the
left of the decimal point).
User Manual PlanMaker
Formulas and functions • 319