Hi,
I just realize that this command show the float in the device localisation format.
Example :
-Log in UK : "1.12"
-Log in France : "1,12"
The decimal separator is not a "." in every localisation.
Is there a way to always have a "." and never have a ","?
Thanks!
Code (CSharp):
- float my_float = 1.1234f;
- Debug.Log(my_float.ToString("F2"));
Example :
-Log in UK : "1.12"
-Log in France : "1,12"
The decimal separator is not a "." in every localisation.
Is there a way to always have a "." and never have a ","?
Thanks!