SUM() calculates the total of all numbers in the specified list. This function is one of the most commonly used aggregation functions, useful for calculating totals, running sums, and performing basic arithmetic operations across multiple values.
SUM(number1 [, number2, number3, ...])
SUM() returns a numeric value
// Basic addition
SUM(3, 1, 2) = 6
// Multiple numbers
SUM(3, 1, 4, 2) = 10
// Negative numbers
SUM(-3, 1, -4, 2) = -4
// Additional examples
SUM(0, 0, 0) = 0 // Zero values
SUM(1.5, 2.5) = 4.0 // Decimal numbers
SUM(-10, 10) = 0 // Opposing values
SUM(100, 200, 300) = 600 // Large numbers