handle fptosi|ui on both floats and doubles