Sum
Returns the sum of the non-null arguments.
Variants
- Sum(Duration duration1, Duration duration2, …, Duration durationN)
- Sum(Numeric number1, Numeric number2, …, Numeric numberN)
Sum(Duration duration1, Duration duration2, …, Duration durationN)
Returns the sum of the non-null durations.
Parameters
- duration
- The duration value to sum.
Returns
Duration
Examples
Sum(3d, 22h)
returns 94 hours (or 3.92 days).
Sum(Numeric number1, Numeric number2, …, Numeric numberN)
Returns the sum of the non-null numbers.
Parameters
- number
- The numeric value to sum.
Returns
Numeric
Examples
Sum(20, 0, 30)
returns 50.Sum(0, 0, 0)
returns 0.