import math


def delta_angle_degrees(from_angle_degrees, to_angle_degrees):
  """Calculates the shortest signed delta angle."""
  delta = to_angle_degrees - from_angle_degrees
  return delta - 360.0 * math.floor((delta + 180.0) / 360.0)