fixed problem with returning 0 and one in binary and decimal need to fix infinity