Parse signed integers, and generate correct atom values