implement fmne_to_i() (with a bug)