It seems AS3 has a toString()
for the Number
class. Is there an equivalent in Haxe? The only solution I could come up with for converting an Int
to a String
is a function like:
public function IntToString(i:Int):String {
var strbuf:StringBuf = new StringBuf();
strbuf.add(i);
return strbuf.toString();
}
Is there a better method that I'm overlooking?