percentDiff(a,b)¶
Definition¶
Double percentDiff(Number a, Number b)
Description¶
This method will use this formula, diff(a,b) / avg(a,b), to obtain the result. Returns null if either one is null, returns NaN if either is negative or if both are zero, otherwise follows formula.
Parameter Definition¶
Name | Type | Description |
---|---|---|
a | Number | first value, should be positive |
b | Number | second value, should be positive |