- Picture and text skills
- Case
Convert decimal number to octal number.
Syntax
DEC2OCT(number, [places])
The DEC2OCT function syntax has the following parameters:
Number: Required, the decimal integer to be converted. If the number is negative, places are ignored and DEC2OCT returns a 10-character (30-bit) octal number with the highest bit being the sign bit. The remaining 29 bits are quantity bits. Negative numbers are represented by two's complement notation.
Places : Optional, the number of characters to use. If places is omitted, DEC2OCT uses the minimum number of characters necessary. Places can be used to prepend 0 (zero) to the returned value.
Description
If number is non-numeric, DEC2OCT returns #VALUE!.
If DEC2OCT requires more than one character, it will return the #NUM! error value.
If places is not an integer, it is truncated.
If "number of bits" is negative, DEC2OCT will return #NUM!.
Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/shi-jin-zhi-zhuan-huan-wei-ba-jin-zhi-de-fang-fa.html
评论列表(196条)
测试