Add Values in Float Array
sv = fao:add(faov)
Modify each fao
entry by adding.
Parameter | Type | Description |
---|---|---|
faov |
number | Single number |
faov |
object | Second Float Array Object |
Returns | Type | Description |
---|---|---|
sv |
number | Sum of all entries in fao after operation. |
e.g.
local sv = fa1:add(fa2) -- fa1[idx] = fa1[idx] + fa2[idx]
local sv = fa1:add(4.56) -- fa1[idx] = fa1[idx] + 4.56