Doubt about float

Hello everyone,

So, this is not anything I really need an answer for (otherwise I’d have posted this at Unity Answers, which seems more fitting than the forum) . I’ve always wondered why does unity work in single precision (float) rather than double, like many other things seem to work in (Like the System.Math library, which is adapted to float through casting with Mathf as I’ve been able to see). It’s a memory issue? I was told once that float behaved better with larger values and the double with very little values, so I also thought this might be a float implementation issue. I’m just curious about it, maybe someone can solve my doubt.

Thank you very much

Because float is faster than double and takes up less ram and bandwidth but some maths may require extra precision. You’ve got system math as well.