(n, base=10, size=0, digits=stddigits)
return ad + bd
Represent the integer n as a string of digits in the given base.
    Recursive division is used to make this function about 3x faster
    than Python's str() for converting integers to decimal strings.

    The 'size' parameters specifies the number of digits in n; this
    number is only used to determine splitting points and need not be
    exact.
Represent the integer n as a string of digits in the given base.
    Recursive division is used to make this function about 3x faster
    than Python's str() for converting integers to decimal strings.
Represent the integer n as a string of digits in the given base . Recursive division is used to make this function about 3x faster than Python s str () for converting integers to decimal strings .
def numeral_python(n, base=10, size=0, digits=stddigits):
    """Represent the integer n as a string of digits in the given base.
    Recursive division is used to make this function about 3x faster
    than Python's str() for converting integers to decimal strings.

    The 'size' parameters specifies the number of digits in n; this
    number is only used to determine splitting points and need not be
    exact."""
    if n <= 0:
        if not n:
            return "0"
        return "-" + numeral(-n, base, size, digits)
    # Fast enough to do directly
    if size < 250:
        return small_numeral(n, base, digits)
    # Divide in half
    half = (size // 2) + (size & 1)
    A, B = divmod(n, base**half)
    ad = numeral(A, base, half, digits)
    bd = numeral(B, base, half, digits).rjust(half, "0")
    return ad + bd
def numeral_python ( n , base = 10 , size = 0 , digits = stddigits ) : if n <= 0 : if not n : return "0" return "-" + numeral ( - n , base , size , digits ) # Fast enough to do directly if size < 250 : return small_numeral ( n , base , digits ) # Divide in half half = ( size // 2 ) + ( size & 1 ) A , B = divmod ( n , base ** half ) ad = numeral ( A , base , half , digits ) bd = numeral ( B , base , half , digits ) . rjust ( half , "0" ) return ad + bd