Skip to content

Commit 13d79af

Browse files
author
sebastien.bouvard
committed
QPR-13698 remove else if condition to round
1 parent 454805a commit 13d79af

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

QuantExt/qle/math/randomvariable.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,6 @@ RandomVariable round(RandomVariable x, const RandomVariable& y) {
738738
x.checkTimeConsistencyAndUpdate(y.time());
739739
if (!y.deterministic_)
740740
x.expand();
741-
else if (QuantLib::close_enough(y.constantData_, 1.0))
742-
return x;
743741
if (x.deterministic()){
744742
double factor = std::pow(10, y.constantData_);
745743
x.constantData_ = std::round(x.constantData_*factor)/factor;

0 commit comments

Comments
 (0)