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
welche online casino zahlt sofort aus einzahlung
per litecoin
online wettanbieter deutschland
My website; Basketball Wetten quoten
sichere schweiz Wetten
finden
new zealand how far is rivers casino from lake george – Giselle
– no deposit bonus codes 2021, does canada have slot machines and real money poker united states app, or canadian accepted online poker sites
horse racing place betting systems
Here is my homepage … greyhound results for tonight [https://Grayhound-betting.com/]
how to bet a box in horse racing
Here is my webpage Monmore Results Dogs, https://Bukmacherjakie.Com,
online casino 5 euro jeton
Also visit my blog post :: 10 einzahlen 100 freispiele
apuestas online sin registro
Check out my web blog :: basketball-wetten.com
top 100 betting eurovision [Chante] websites