completed method to convert to decimal number. Test are successful except doesn't give exact decimal representation.