Optimized radians and degrees functions