This shows you the differences between two versions of the page.
en:toradix [2016/08/12 12:47] admin |
en:toradix [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== ToRadix (Function) ====== | ||
- | ==== Format ==== | ||
- | |||
- | **toradix** ( [[numericexpressions|numeric_expression]] , // | ||
- | |||
- | return // | ||
- | |||
- | ==== Description ==== | ||
- | |||
- | Changes a //number// (base 10) to the same number in whatever //base// defined. The number is returned as a string. | ||
- | |||
- | ==== Example ==== | ||
- | |||
- | < | ||
- | 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 | ||
- | </ | ||
- | displays\\ | ||
- | < | ||
- | 10, | ||
- | 1,1,1,1,1,1 | ||
- | 2, | ||
- | 4, | ||
- | 8, | ||
- | 16, | ||
- | 32, | ||
- | 64, | ||
- | 128, | ||
- | 256, | ||
- | 512, | ||
- | 1024, | ||
- | 2048, | ||
- | 4096, | ||
- | 8192, | ||
- | </ | ||
- | |||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.9.45|New To Version| |