How to find the % difference between 2 numbers that can be positive or negative?
Solution 1:
https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/ManipulateNumbers.html
Several of the JavaScript examples in this chapter call the
Math.abs()
method to get the absolute value of a number. AppleScript does not have an equivalent method.
In the AppleScript examples, Apple use the following as a substitution.
set isNegative to theNumber is less than 0 if isNegative = true then set theNumber to -theNumber