Integer to String
naryl
cy at ngs.ru
Wed Jan 30 02:07:14 PST 2008
On Wed, 30 Jan 2008 12:47:38 +0300, tytower <tytower at yahoo.com> wrote:
> I'm pulling my hair out to simply take a number say 37 and convert it to
> a string under Tango
>
> int x = 37
> Char[] y = intToString(x);
>
> how the blazes do I make this simple little thing work??
http://www.dsource.org/projects/tango/wiki/ChapterConversions#Conversionbetweentextandnumerictypes
For your example:
import tango.text.convert.Integer;
...
int x = 37;
char[] y = toString(x);
More information about the Digitalmars-d-learn
mailing list