VALUE1
-
VALUE2

The - operator subtracts the numeric value on the right from the numeric value on the left.


Parameters

This operator has two parameters:

value1 – The first numeric value.

value2 – The second numeric value.


Description

This operator performs subtraction just like you learned in grade school. You can subtract integers:

5-2 ☞ 3

And you can also subtract floating point values:

5.75-2.5 ☞ 3.25

Error Messages

Cannot subtract a number from text (or text from a number) – Both operands must be numbers. If either or both operands are text values you must use the val( function to convert the value to a number before subtracting.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0