here are the 2 cases

first one prints 'nan', but I think we elsewhere print 'NaN'
2nd prints '' (nothing), but I think that's wrong