Support negative numbers when converting both ways.