I have a line of code, something like:
mbar.HealthLabel.text = String.Format("{0:0.0}", _hp);
Output is: 2.25 for example. Is it possible to escape a dot from the output string view with String.Format function ?
For. ex. 225,
To make my question more clear, I need the same effect like:
Math.Floor(_hp * 100).ToString();
But need to do it by String.Format
template.. Thanks.
_hp
? – Maxmbar.HealthLabel.text = String.Format("{0:0.0}", _hp * 100);
? Note, that string format for numeric values depends on regional settings! – Justification1.2345
and you want that to be12345
– Oreilly