Add comparison for floating points
Fix bugs in eq_f and rstdin_g