I'm trying to convert decimal to base 36 (...8,9,a,b,c...x,y,z,10,11...) but when I run my code I get a bunch of floats instead of integers.
def trc(n):
if (n < 0): print(0, end='')
elif (n<=1): print(n, end='')
else:
trc( n / 36 )
x =(n%36)
if (x < 10): print(x, end='')
else: print(chr(x+87), end='')
I based this code off of this.