percentChange(old,nuw)¶
Definition¶
Double percentChange(Number old, Number nuw)
Description¶
Computes (new − old) / old. Returns null if either argument is null or the result is null. Returns NaN if either argument is negative, or if both are zero. Otherwise, returns the computed result.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| old | Number | first value, should be positive |
| nuw | Number | second value, should be positive |