Hello,
How to change the numeric base of a number? This is a implementation in Python.
[code lang=”python”]
def convert(decimal,newBase,str,letters):
if decimal >= newBase:
x = decimal % newBase
y = decimal / newBase
str = letters[x] + str
if y < newBase:
str = letters[y] + str
return convert(y,newBase,str,letters)
else:
if len(str) == 0:
str = letters[decimal] + str
return str
let = "0123456789ABCDEF"
print convert(17,16,"",let)
[/code]
The variable let means what values used in the base. For an example if you want binary you should replace with 01.
Matheus
pferderennen mannheim basketball em wetten
norwich betting tips
Feel free to visit my web site – free bet for existing customers
matched Betting profit spreadsheet (reay.org.uk) exchange
germany
ladbrokes slots uk, 100 united kingdom casino free keep online
spin winnings and online casino uk 5 deposit, or pokies reopening south united states
Also visit my site; who owns the ottawa blackjacks, Joesph,
erfolgreiche wettstrategie
Also visit my page: mit basketball wetten geld verdienen (Eit5.Eggo-It.ch)
uk trusted online horse windsor Racing today Results and payouts betting
site
best wv sportsbook app
Feel free to visit my page; martingale strategy sports Betting