We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 153d749 commit d23df89Copy full SHA for d23df89
src/intervals/functions.jl
@@ -381,5 +381,5 @@ function mod(x::Interval, y::Real)
381
@assert y > 0 "modulo is currently implemented only for a positive divisor."
382
division = x / y
383
fl = floor(division)
384
- fl.lo < fl.hi ? 0..y : y * (division - fl)
+ fl.lo < fl.hi ? Interval(zero(y), y) : y * (division - fl)
385
end
0 commit comments