Skip to content

Commit d23df89

Browse files
Update src/intervals/functions.jl
Co-authored-by: lucaferranti <49938764+lucaferranti@users.noreply.github.com>
1 parent 153d749 commit d23df89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intervals/functions.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,5 +381,5 @@ function mod(x::Interval, y::Real)
381381
@assert y > 0 "modulo is currently implemented only for a positive divisor."
382382
division = x / y
383383
fl = floor(division)
384-
fl.lo < fl.hi ? 0..y : y * (division - fl)
384+
fl.lo < fl.hi ? Interval(zero(y), y) : y * (division - fl)
385385
end

0 commit comments

Comments
 (0)