ADD function

ADD function

Function Name Description Usage Input parameter Return value
ADD Adds the specified number to an existing number. ADD(value) Number to add. Sum of the two numbers.

Supported data type

The ADD function supports the following data types:

  • Double
  • Integer

Example: Add two integers

Sample data: $var1$ = 15

Usage: $var1$.ADD(5)

Add 5 to var1.

Output: 20

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年12月09日 UTC.