diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-06-23 20:42:27 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-06-23 20:42:27 +0200 |
commit | 2a65bf32ec270484dcea4d22d3c93552dc0c24dd (patch) | |
tree | 93ef95ef9bda80b60e7eadaea88db64d7ab9d160 /scaddins | |
parent | 09b4cbe977c755a447f97034189b85998f358d79 (diff) |
Revert "Typo: iff->if"
This reverts commit cf92da3d6e1de14756efe3f1ee79f393a2f3787d.
iff can mean "if and only if" so not a typo
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 2 | ||||
-rw-r--r-- | scaddins/source/pricing/black_scholes.cxx | 2 | ||||
-rw-r--r-- | scaddins/source/pricing/black_scholes.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index 419408b6b3b0..f5cd27c21a14 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -560,7 +560,7 @@ double GetYearFrac( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDat // is to be understood as "inclusive the lower bound, exclusive in upper bound". assert(nYear1 == nYear2 || nYear1 + 1 == nYear2); - // as a consequence, nYearDifferent if nYear2 == nYear + 1, and + // as a consequence, nYearDifferent iff nYear2 == nYear + 1, and // there are only two possible 29 Februaries to consider: // "29 February nYear1" and "29 February nYear2" diff --git a/scaddins/source/pricing/black_scholes.cxx b/scaddins/source/pricing/black_scholes.cxx index 97885596cacf..95fa888a87ff 100644 --- a/scaddins/source/pricing/black_scholes.cxx +++ b/scaddins/source/pricing/black_scholes.cxx @@ -888,7 +888,7 @@ double prob_hit(double S, double vol, double mu, } // probability of being in-the-money, ie payoff is greater zero, -// assuming payoff(S_T) > 0 if S_T in [B1, B2] +// assuming payoff(S_T) > 0 iff S_T in [B1, B2] // this the same as the price of a cash or nothing option // with no discounting double prob_in_money(double S, double vol, double mu, diff --git a/scaddins/source/pricing/black_scholes.hxx b/scaddins/source/pricing/black_scholes.hxx index c42ba182a757..cdcb20b84182 100644 --- a/scaddins/source/pricing/black_scholes.hxx +++ b/scaddins/source/pricing/black_scholes.hxx @@ -130,7 +130,7 @@ double prob_hit(double S, double vol, double mu, // probability of being in-the-money, ie payoff is greater zero, -// assuming payoff(S_T) > 0 if S_T in [B1, B2] +// assuming payoff(S_T) > 0 iff S_T in [B1, B2] double prob_in_money(double S, double vol, double mu, double tau, double B1, double B2); double prob_in_money(double S, double vol, double mu, |