Support negative numbers in calc module