This shows you the differences between two versions of the page.
ro:toradix [2017/09/04 05:14] junior-root [Format] |
ro:toradix [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== ToRadix (Funcție) ====== | ||
- | > **Engleză: | ||
- | ==== Format ==== | ||
- | **toradix** ( [[integerexpressions|număr_întreg]] , [[integerexpressions|bază_sistem_numerație]] ) | ||
- | |||
- | Întoarce un [[stringexpressions|șir_de_caractere]]. | ||
- | ==== Descriere ==== | ||
- | Convertește un număr (exprimat în baza 10) în același număr exprimat în baza indicată. Numărul este întors ca șir de caractere.\\ | ||
- | Valorile acceptate pentru [[integerexpressions|bază_sistem_numerație]] | ||
- | ==== Exemplu ==== | ||
- | < | ||
- | print "baze de numerație" | ||
- | print " | ||
- | do | ||
- | print t+","; | ||
- | print toradix(t, | ||
- | print toradix(t, | ||
- | print toradix(t, | ||
- | print toradix(t, | ||
- | print toradix(t, | ||
- | t*=2 | ||
- | until t > 10000 | ||
- | </ | ||
- | va afișa | ||
- | < | ||
- | baze de numerație | ||
- | 10, | ||
- | 1,1,1,1,1,1 | ||
- | 2, | ||
- | 4, | ||
- | 8, | ||
- | 16, | ||
- | 32, | ||
- | 64, | ||
- | 128, | ||
- | 256, | ||
- | 512, | ||
- | 1024, | ||
- | 2048, | ||
- | 4096, | ||
- | 8192, | ||
- | </ | ||
- | |||
- | ==== Vezi și ==== | ||
- | {{page> | ||
- | ==== Istoric ==== | ||
- | |0.9.9.45|Adăugată în acestă versiune| | ||