toSemicircles function

int toSemicircles(
  1. int degrees
)

Implementation

int toSemicircles(int degrees) {
  return (2147483648 * degrees / 180.0).round();
}