fix <-> floating conversion now takes masks as parameter.