Converts a grad (400-periodic) angle to a degree (360-periodic) angle.
grad
double gradToDegree(double grad) { return grad * 0.9; }