# Integer and Negative Number Calculator

Add, subtract, multiply, and divide integers (whole numbers) including negative numbers.

Use numbers and + - * / ( )

Result:
Step by step:
= -15 + 12 + -22 * (33 - 70)
= -15 + 12 + -22 * -37
= -15 + 12 + 814
= 811

This calculator allows you to add, subtract, multiply, and divide integers, including negative numbers.

It shows step-by-step calculations, with sign changes for subtracting negative numbers. You can use it for adding, subtracting, multiplying, and dividing positive and negative whole numbers, as well as decimals. It also handles equations with parentheses.

Examples:

Input Result
-20 - -92 + 28 100
(-20) - (-92) + 28 100
-20 - (-92 + 28) 44
24 * (77 - 15) + 12 1500
(42 + 10) / -2 + 12 -14
(36+ 12) * 3 + (2 * 7) / 4 147.5

## How to use this calculator?

1. Enter your math equation. You can use numbers and + - * / ( ).
2. Click the "Calculate" button.

If you want to clear the input field and the result, click on the "Clear" button. However, it is not necessary as you can enter another equation and simply click "Calculate" again.

If signs are the same, keep them and add the numbers.

Method Example
(+) + (+) = (+) 30 + 15 = 45
(-) + (-) = (-) -30 + -15 = -45

If signs are different, take the larger number and subtract the smaller number from it. Then use the sign of the larger number.

Method Example
(-larger) + (+smaller) = (-) -20 + 7 = -13
(-smaller) + (+larger) = (+) -5 + 12 = 7

## Subtracting Integers

To subtract integers:

Method Example
(-) - (-) = (+ or -) -12 - (-9) = -12 + 9 = -3
(-) - (+) = (-) -11 - 5 = -16
(+) - (-) = (+) 4 - (-3) = 4 + 3 = 7
(+) - (+) = (+ or -) 12 - 15 = -3

## Multiplying Integers

If the signs are the same (both positive or both negative), the product is positive.

If the signs are different, the product is negative.

Method Example
(+) * (+) = (+) 5 * 4 = 20
(-) * (-) = (+) -3 * -6 = 18
(-) * (+) = (-) -2 * 9 = -18

## Dividing Integers

The rules are similar to multiplying integers:

If the signs are the same (both positive or both negative), the quotient is positive.

If the signs are different, the quotient is negative.

Method Example
(+) / (+) = (+) 20 / 5 = 4
(-) / (-) = (+) -18 / -3 = 6
(-) / (+) = (-) -24 / 8 = -3