|
| template<class TA, class TB, class TR> |
| static TR | Operation (TA left, TB right) |
◆ Operation() [1/4]
template<class TA, class TB, class TR>
| TR duckdb::ModuloOperator::Operation |
( |
TA | left, |
|
|
TB | right ) |
|
inlinestatic |
228140 {
228141 D_ASSERT(right != 0);
228142 return left % right;
228143 }
◆ Operation() [2/4]
template<>
| float duckdb::ModuloOperator::Operation |
( |
float | left, |
|
|
float | right ) |
229316 {
229317 auto result = std::fmod(left, right);
229318 return result;
229319}
◆ Operation() [3/4]
template<>
| double duckdb::ModuloOperator::Operation |
( |
double | left, |
|
|
double | right ) |
229322 {
229323 auto result = std::fmod(left, right);
229324 return result;
229325}
◆ Operation() [4/4]
229328 {
229329 if (right.lower == 0 && right.upper == 0) {
229330 throw InternalException("Hugeint division by zero!");
229331 }
229332 return left % right;
229333}
The documentation for this struct was generated from the following file: