Handle floating point issues