When the original rotation was 118.489, it thought the nearest 90 degrees was -180… Looking at some print statements I found that when walking through the math It should 118.489/90 = 1.316 which it should round to 1, but apparently it rounded to -2, weird