Skip to content

Function: evaluateMath() ​

ts
function evaluateMath(node, totals): number;

Defined in: src/math.ts:79

What a formula comes to, given each kind's total. A sound formula (checkMath) always comes to a whole number.

Parameters ​

node ​

MathNode

totals ​

readonly number[]

Returns ​

number

MIT © John Morris