Hi,
I have a small problem with a float value.
The value is 0, but I expect 7.32.
Probably a stupid mistake, but I didn’t find an answer.
public class GameFieldBuilder : MonoBehaviour {
public float tileSizeX = 7.32f;
void Start () {
Debug.Log("A: " + 7.32f);
Debug.Log("B: " + tileSizeX);
Debug.Log("C: " + tileSizeX.ToString("0.0"));
Output:
A: 7.32
B: 0
C: 0.0
Thanks and best regards