nit: change to `degrees |= 0`. The bitwise OR explicitly converts both operands to 32-bit integer without the rounding operation.