make float mod and rem consistent. fixes #3127
use them to improve float fld and div.