Skip to main content

SUBTRACT

Subtracts one value from another.

Syntax

byte? SUBTRACT(byte? a, byte? b)
short? SUBTRACT(short? a, short? b)
int? SUBTRACT(int? a, int? b)
long? SUBTRACT(long? a, long? b)
Single? SUBTRACT(Single? a, Single? b)
double? SUBTRACT(double? a, double? b)
double? SUBTRACT(double? a, decimal? b)
decimal? SUBTRACT(decimal? a, double? b)
decimal? SUBTRACT(decimal? a, decimal? b)

Example

SUBTRACT(12, 9)

Will return '3'.