xl Precision
Get Your Numbers Right

 

xlpADD

Adds two numbers, with up to 32,767 significant digits of precision.

Syntax

xlpADD(number1,number2,format_negative,format_thousands,format_currency,exponential_notation,maximum_significant_digits)

number1 Required. The first number to be added.
number2 Required. The second number to be added.
format_negative Optional. Determines whether negatives are formatted with a leading hyphen ("-"), or parentheses ("()"). Set to 1 to format negatives with a leading hyphen. Set to 2 for parentheses. 1 by default.
format_thousands Optional. Determines whether thousands separators are included. Set to TRUE to include thousands separators. FALSE by default.
format_currency Optional. Determines whether currency symbol is included. Set to TRUE to include currency symbol. The currency symbol will be added either to the beginning or to the end of the result, whichever is appropriate for the locale. FALSE by default.
exponential_notation Optional. Determines whether result is formatted in exponential notation. Set to TRUE to format in exponential notation. FALSE by default.
maximum_significant_digits Optional. Determines the maximum number of significant digits to be returned. Default is the maximum number allowed by the edition of xlPrecision.

Remarks

Examples

Formula Description
=xlpADD(1,2) 1 + 2
=xlpADD(A1,A2,2,TRUE,TRUE) A1 + A2, formatted with parentheses (if negative), thousands separators, and currency symbol.
=xlpADD(A1,A2,,,,exponential_notation,100) A1 + A2, formatted in exponential notation, and restricting the significant digits to a maximum of 100 to get faster calculation performance.

See Also

xlpSUM