error checking for 'unfloat' and 'undouble'