2017-01-28 2 views
1

Est-il possible de convertir un nombre entier en code hexadécimal à 6 chiffres? Dans AS3 j'avais API natifComment convertir Int en chaîne hexagonale?

var color:uint = 0xFF00FF; 
trace("Color #" + color.toString(16)); //Color #ff00ff 

Est-ce que Haxe a une telle fonctionnalité dans la bibliothèque standard?

Répondre