percentChange(old,nuw)¶
Definition¶
Double percentChange(Number old, Number nuw)
Description¶
This method will use this formula, (nuw-old) / old, to obtain the result. Returns either the formula result or null if either argument is null. Returns NaN if either is negative or if both are zero.
Parameter Definition¶
Name | Type | Description |
---|---|---|
old | Number | first value, should be positive |
nuw | Number | second value, should be positive |