This shows you the differences between two versions of the page.
ro:tobinary [2017/09/04 05:15] junior-root [Format] |
ro:tobinary [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== ToBinary (Funcție) ===== | ||
- | > **Engleză: | ||
- | ==== Format ==== | ||
- | ToBinary ( [[integerexpressions|număr_întreg]] ) | ||
- | |||
- | Întoarce un [[stringexpressions|șir_de_caractere]]. | ||
- | ==== Descriere ==== | ||
- | Convertește un număr într-un șir de caractere conținând reprezentarea acestuia în sistemul binar (în baza 2). | ||
- | ==== Exemplu ==== | ||
- | < | ||
- | For t = 0 to 10 | ||
- | print ToBinary(t) | ||
- | next t | ||
- | </ | ||
- | va afișa: | ||
- | < | ||
- | 0 | ||
- | 1 | ||
- | 10 | ||
- | 11 | ||
- | 100 | ||
- | 101 | ||
- | 110 | ||
- | 111 | ||
- | 1000 | ||
- | 1001 | ||
- | 1010 | ||
- | </ | ||
- | ==== Vezi și ==== | ||
- | {{page> | ||
- | ==== Istoric ==== | ||
- | |0.9.9.45|Adăugată în acestă versiune| | ||