Livecycle

Livecycle

  • Welcome to Adobe LiveCycle Designer ES
  • Introducing Designer ES
  • Getting Started
  • Quick Start Tutorials
  • Using LiveCycle Designer ES
  • Using Guide Builder
  • Scripting
  • Menu, Command, Toolbar, and Dialog Box Reference
  • Sample Form Snippets and Forms
  • Glossary
  • Copyright and trademark notices
  • Livecycle
  • Scripting
  • FormCalc User Reference
  • Arithmetic Functions
  • Sum
Sum
Returns the sum of the non-null elements of a given set of numbers.
Syntax
Sum(n1 [, n2 ...])
Parameters
 
Parameter
Description
n1
A numeric value or expression.
n2 (optional)
Additional numeric values and/or expressions.
Note:
FormCalc follows the IEEE-754 international standard when handling floating point numeric values. For more information, see “Number literals”.
Examples
The following expressions are examples of using the Sum function:
 
Expression
Returns
Sum(2, 4, 6, 8)
20
Sum(-2, 4, -6, 8)
4
Sum(4, 16, “abc”, 19)
39
Sum(Amount[2], Amount[5])
Totals the third and sixth occurrences of Amount.
Sum(Round(20/3, 2), Max(Amount[*]), Min(Amount[*]))
Totals the value of 20/3 rounded to two decimal places, as well as the largest and smallest non-null occurrences of Amount.
See also “Max”, “Min”, and “Round”.

Sum

Livecycle > Sum

  • Welcome to Adobe LiveCycle Designer ES
  • Introducing Designer ES
    • Getting Started
      • Quick Start Tutorials
        • Using LiveCycle Designer ES
          • Using Guide Builder
            • Scripting
              • Scripting Using LiveCycle Designer ES
                • Scripting Reference
                  • FormCalc User Reference
                    • Introducing FormCalc
                      • Language Reference
                        • Arithmetic Functions
                          • About arithmetic functions
                          • Abs
                          • Avg
                          • Ceil
                          • Count
                          • Floor
                          • Max
                          • Min
                          • Mod
                          • Round
                          • Sum
                        • Date and Time Functions
                          • Financial Functions
                            • Logical Functions
                              • Miscellaneous Functions
                                • String Functions
                                  • URL Functions
                                • Menu, Command, Toolbar, and Dialog Box Reference
                                  • Sample Form Snippets and Forms
                                    • Glossary
                                    • Copyright and trademark notices

                                    Livecycle

                                    • de
                                    • en
                                    • fr
                                    Powered by Helpmax Guide Source