avoid uncessary floating point errors, for scalars