If I'm just reading the variable, and not trying to modify it in the function, I probably don't want to pass it by reference, right?
As far as passing it as a function parameter, I guess I should add that this function is inside a class. I guess I could pass another parameter via the class constructor, but then I will have to define it outside the class even if it's zero or null. I define this variable in a configuration includes page, and I'd like the class to not break if it's not defined.
In plain English, what the class says is "now that you've done a bunch of work, go see if there is a standard discount percentage set up; if so, get it and apply the discount; otherwise, just return the non-discounted amount".
If that helps.