Yahoo web space - 1135Chapter 42 .Global Functions and Statements parameter. By
1135Chapter 42 .Global Functions and Statements parameter. By setting this parameter between 2 and 16, you can convert numbers to string equivalents in different number bases. Listing 42-1 calculates and draws a conversion table for decimal, hexadecimal, and binary numbers between 0 and 20. In this case, the source of each value is the value of the index counter variable each time the for loop s statements execute. Listing 42-1: Using toString() with Radix Values
| Decimal | Hexadecimal | Binary |
|---|