Handle num=0, fix logic of switching to milli