I made two variables:
public float abc;
public int def;
In the inspector I give this value “18000000” (18 million) to abc and def.
Then in the inspector I get this:
abc = 1.8e+07
def = 18000000
Why I get this “1.8e+07” when I give a float number?
The print output is the same like:
print("abc: "+abc);
Output: 1.8e+07
Why?
I’m using Unity 2017.3.1f.