Computer Science Canada

How does the base function in intstr work.

Author:  braeden [ Thu Nov 13, 2008 8:37 pm ]
Post subject:  How does the base function in intstr work.

How does the base function in intstr work.
Any help would be appreciated.[/b]

Author:  Insectoid [ Thu Nov 13, 2008 8:45 pm ]
Post subject:  RE:How does the base function in intstr work.

Define 'how does it work'. We could give you a synopsis of the conversions that go on behind the scenes, or the syntax for the command, or something completely different.

Author:  gitoxa [ Thu Nov 13, 2008 11:26 pm ]
Post subject:  RE:How does the base function in intstr work.

I believe he means the "base" part of intstr.
code:
intstr ( i : int [ , width : int [ , base : int ] ] ) : string

The base is just the number system you want the integer to be converted to. Default is 10. 2 would change it to a binary number, and 16 would change it to hex


: