描述
BIN2OCT函数将十进制数转换为八进制。
语法
DEC2OCT (number, [places])
争论
| Argument | 描述 | Required/Optional |
|---|---|---|
| number | 要转换的十进制整数。如果number为负数,则忽略位数,并且DEC2OCT返回10个字符(30位)的八进制数字,其中最高有效位是符号位。其余的29位是幅度位。负数使用二进制补码表示。 |
Required |
| places | The number of characters to use. If places is omitted, DEC2OCT uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). | Optional |
Notes
If number < -536,870,912 or if number > 536,870,911, DEC2OCT returns the #NUM! Error value.
如果数字为非数字,则DEC2OCT返回#VALUE!错误值。
如果DEC2OCT需要多个字符,则返回#NUM!误差值
如果places不是整数,则将其截断。
如果place是非数字的,则DEC2OCT返回#VALUE!错误值。
如果place为负数,则DEC2OCT返回#NUM!错误值。
适用性
Excel 2007,Excel 2010,Excel 2013,Excel 2016
Example