Original Post
i know that usually it's better to use floats in games than doubles, but suppose i have a method (in java) that goes like this: public float GetXComponent(float Angle) { return (float)Math.cos(Angle); } notice there are actually two casts to doubles, as Math.cos takes a double as an argument, not a float. so, maybe it'll run faster if it's: public double GetXComponent(double Angle) { return Math.cos(Angle); } and even if that's true, i'll have to make a cast somewhere, because all my other variables are floats. what should i do? thanks, noam :)