This shows you the differences between two versions of the page.
en:tobinary [2017/08/22 16:00] junior-root |
en:tobinary [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== ToBinary (Function) ===== | ||
- | ==== Format ==== | ||
- | |||
- | ToBinary ( [[numericexpressions|numeric_expression]] ) | ||
- | |||
- | returns [[stringexpressions|string_expression]] | ||
- | |||
- | ==== Description ==== | ||
- | |||
- | Converts a number to its a string containing a binary value of ones and zeros. | ||
- | |||
- | ==== Example ==== | ||
- | |||
- | < | ||
- | For t = 0 to 10 | ||
- | print ToBinary(t) | ||
- | next t | ||
- | </ | ||
- | |||
- | Results in | ||
- | |||
- | < | ||
- | 0 | ||
- | 1 | ||
- | 10 | ||
- | 11 | ||
- | 100 | ||
- | 101 | ||
- | 110 | ||
- | 111 | ||
- | 1000 | ||
- | 1001 | ||
- | 1010 | ||
- | </ | ||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.9.45|New To Version| |