convnum
    Preparing search index...

    Function toOct

    • Converts a decimal number to an octal string

      Parameters

      • num: number

        The decimal number to convert

      • prefix: PrefixType = false

        Whether to include prefix: false (no prefix), "lower" (0o), "upper" (0O)

      Returns string

      The octal representation as a string