Unity vs floating point 0 ▲ Aras' website 169 days ago · Tech · hide · Fediverse post A tweet by @VehiclePhysics sparked my interest. It basically says: For most math functions (Sqrt, Sin, Cos, Log, Pow…), prefer System.MathF over UnityEngine.Mathf. Unity’s Mathf casts to double, calls the double version, then converts back to float. System.MathF calls the float-native implementations directly. Less work, same result. This advice is basically correct! But turns out, things are slightly more complicated. Hidden double precision in Unity The advice above applies to all UnityEngine. Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town