I replaced it with a d == c, that must work for floating point as well.