Restrict factorial < 100000
bin, oct and hex to dec functions