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