assert that the decimals parameters of the round repairer is <= 1.0
This commit is contained in:
parent
9decda0c6a
commit
e09bb5551b
1 changed files with 5 additions and 1 deletions
|
|
@ -86,7 +86,11 @@ public:
|
|||
typedef typename EOT::AtomType ArgType;
|
||||
|
||||
//! Generally speaking, we expect decimals being <= 1, but it can work for higher values
|
||||
edoRepairerRoundDecimals( ArgType decimals ) : edoRepairerApplyBinary<EOT>( edoRound<ArgType>, 1 / decimals ) {}
|
||||
edoRepairerRoundDecimals( ArgType decimals ) : edoRepairerApplyBinary<EOT>( edoRound<ArgType>, 1 / decimals )
|
||||
{
|
||||
assert( decimals <= 1.0 );
|
||||
assert( 1/decimals >= 1.0 );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Reference in a new issue