Are you sure the data is written to the EEPROM?
Some EEPROMs are initialized with 0xFF for every byte, which could read as -inf.
(depending on platform)
So what platform are you using?
Can you provide a minimal sketch that shows the problem?
(the code snippet does not compile)