This shows you the differences between two versions of the page.
fr:toradix [2016/01/01 22:45] |
fr:toradix [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== ToRadix ===== | ||
+ | ==== Format ==== | ||
+ | |||
+ | **toradix** ( //number// , //base// ) | ||
+ | |||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | Retourne la représentation en base //base// de la valeur //number// sous forme de chaîne de caractères. | ||
+ | |||
+ | ==== Exemple ==== | ||
+ | |||
+ | < | ||
+ | print " | ||
+ | print " | ||
+ | do | ||
+ | print t+","; | ||
+ | print toradix(t, | ||
+ | print toradix(t, | ||
+ | print toradix(t, | ||
+ | print toradix(t, | ||
+ | print toradix(t, | ||
+ | t*=2 | ||
+ | until t > 10000 | ||
+ | </ | ||
+ | Affichera :\\ | ||
+ | < | ||
+ | 10, | ||
+ | 1,1,1,1,1,1 | ||
+ | 2, | ||
+ | 4, | ||
+ | 8, | ||
+ | 16, | ||
+ | 32, | ||
+ | 64, | ||
+ | 128, | ||
+ | 256, | ||
+ | 512, | ||
+ | 1024, | ||
+ | 2048, | ||
+ | 4096, | ||
+ | 8192, | ||
+ | </ | ||
+ | |||
+ | ==== Disponible depuis la version ==== | ||
+ | 0.9.9.45 | ||
+ | |||
+ | ==== Voir Aussi ==== | ||
+ | {{page> |