Subtract Values in Float Array
sv = fao:sub(faov)
Modify each fao
entry by subtracting.
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:sub(fa2) -- fa1[idx] = fa1[idx] - fa2[idx]
local sv = fa1:sub(4.56) -- fa1[idx] = fa1[idx] - 4.56