SUBTRACT function

SUBTRACT function

Function Name Description Usage Input parameter Return value
SUBTRACT Subtracts the specified number from an existing number. SUBTRACT(value) Number to subtract. Difference of two numbers.

Supported data type

The SUBTRACT function supports the following data types:

  • Double
  • Integer

Example: Subtract an integer value

Sample data: $var1$ = 10

Usage: $var1$.SUBTRACT(15)

Subtract 15 from var1.

Output: -5

Recommendation

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月24日 UTC.