ScanSkill

- (subtraction)

This - (subtraction) arithmetic operator returns the difference between the two expressions.

Syntax

A - B

Here, A and B are called operands and '-' is a subtraction operator.

  • A: An expression that is evaluating to a numeric type.
  • B: An expression that is evaluating to a numeric type.

Examples

>>> 10 - 3
7
>>> 9.0 - 2
7.0
>>> 14 - 1.0
13.0