removed redundant 'fromNum', duplicating stdlib code