Aggregates Aggregate

fsum()

Calculates the sum using a more accurate floating point summation (Kahan Sum).

Reference: DuckDB 1.3.2

Alias of kahan_sum()

Arguments & returns

fsum(arg)

Aggregate
Overload link arg Returns
#01 DOUBLE DOUBLE

Example

fsum example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Engine example with sample data · Run to view results.

Catalog examples

SELECT
  kahan_sum(A);