Yes, but if the strings are eq, the floats that come from those strings will be ==. It's a deterministic thing. That said, it makes more sense to compare them with eq, since the output of sprintf is a string. Why force the conversion back?
Caution: Contents may have been coded under pressure.