Spread.NET 17 Formula Reference
Formula Functions / Functions A to C / BIN2OCT
In This Topic
    BIN2OCT
    In This Topic

    This function converts a binary number to an octal number.

    Syntax

    BIN2OCT(number,places)

    Arguments

    This function has these arguments:

    Argument Description
    number Binary numeric value to convert
    places [Optional] Number of characters to return; if not an integer, the number is truncated

    Remarks

    An error value is returned if the number contains more than 10 digits or is invalid, or if the value of places is non-numeric or negative. If places is omitted, the calculation uses the minimum number of characters necessary. This argument is useful for adding leading zeros to the result.

    Data Types

    Accepts numeric data. Returns numeric data.

    Examples

    BIN2OCT(1001,2)

    Version Available

    This function is available in product version 2.0 or later.

    See Also

    BIN2DEC | BIN2HEX | OCT2BIN | DEC2OCT | Engineering Functions