adding leading zeros to code that are truncated by int type