Fixed floating point math to make way more sense.