add maybefloat methods & corresponding C functions