In C++ (if you #include <cmath> and use std::atan (or using namespace std), They are exact same thing. You should skip the redundant cast and use std::atan(14.865f)
If you're using the C math library (from #include <math.h> ), atan returns a double, which is then cast to float, and the result may, in principle, depend on the currently installed floating-point rounding mode.