Set type to numpy.float64 to avoid rounding errors.