It seems AS3 has toString() for the Number class. Is there an equivalent in Haxe? The only solution I could come up with for converting Int to 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 skip?
string haxe
dunstantom
source share