WarUI

Built-in math and aggregate functions

GRID-A13-F08P0baselinePlanned

The engine ships core numeric functions: SUM, AVERAGE, MIN, MAX, COUNT, COUNTA, ROUND, ABS, MOD, POWER, SQRT, SUMIF and COUNTIF. Each function documents its argument coercion rules, such as how text and blank cells are handled, so results are predictable.

Planned. This page shows the specification from issue #192. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A sales grid with numeric, blank and text cells mixed together, and summary rows that use each function.

Expected behavior

Summary rows update when data is edited. Text inside a SUM range is ignored, matching the documented rule. Removing SUM from the allow-list turns SUM cells into #NAME?.

Planned API surface

method: formulaEngine.listFunctions()method: formulaEngine.getFunctionInfo(name)option: formulas.functions (allow-list)

Acceptance criteria

  • Each function passes its documented test vectors. (pending)
  • Blank and text coercion follows the documented table. (pending)
  • Floating-point display uses a documented rounding policy, so 0.1+0.2 displays as 0.3. (pending)
  • Functions that are not on the allow-list return #NAME?. (pending)