You can use the following formula to verify if a result currentResult
is reduced by 20% compared to a previous result previousResult
:
main.m138 chars6 lines
This formula checks if currentResult
is equal to previousResult
multiplied by 0.8
(which is 20% reduction of previousResult
). If it is, then it outputs "The result is reduced by 20%". Otherwise, it outputs "The result is NOT reduced by 20%".
gistlibby LogSnag