• Parse or format the given val.

    Parameters

    • value: StringValue

      The string or number to convert

    • Optional options: Options

      Options for the conversion

    Returns number

    Throws

    Error if value is not a non-empty string or a number

  • Parameters

    • value: number
    • Optional options: Options

    Returns string