rewrote integer to decimal string convertion functions