Rules - MarcosPiedra/CalculatorService GitHub Wiki
The server has a severals rules per operation:
- Divide:
- The divisor cannot be < 0
- The divisor and the divident cannot be greater than 1000.
- Multiplication:
- The number of factors cannot be empty or greather than 9
- For each number: The number of factor cannot be greather than 9 (index of the incorrect number)
- Square:
- The number cannot be greather than 10000.
- Substract:
- The minuend cannot be greather than 10000
- The subtrahend cannot be greather than 10000
- Multiplication:
- The addends factors cannot be empty or greather than 9
- For each addends: The addends cannot be greather than 9 (index of the incorrect addends)