mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Update moduloOrZero.cpp
This commit is contained in:
parent
16ba0f91d7
commit
b358c796f1
@ -16,7 +16,7 @@ struct ModuloOrZeroImpl
|
||||
{
|
||||
if constexpr (std::is_floating_point_v<ResultType>)
|
||||
{
|
||||
return ResultType(a) - floor(ResultType(a) / ResultType(b)) * ResultType(b);
|
||||
return ResultType(a) - trunc(ResultType(a) / ResultType(b)) * ResultType(b);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user