Skip to content

Commit 1061f22

Browse files
author
Luis Benet
committed
Change fld(a,b) -> floor(a,b)
1 parent b27263a commit 1061f22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/intervals/functions.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ end
270270
# mod
271271
function mod(a::Interval, y::T) where {T<:Real}
272272
yy = abs(y)
273-
fld_lo = fld(a.lo, yy)
274-
fld_hi = fld(a.hi, yy)
273+
fld_lo = floor(a.lo/yy)
274+
fld_hi = floor(a.hi/yy)
275275
z = zero(fld_lo)
276276

277277
if fld_lo != fld_hi
@@ -290,8 +290,8 @@ end
290290

291291
function extended_mod(a::Interval, y::T) where {T<:Real}
292292
yy = abs(y)
293-
fld_lo = fld(a.lo, yy)
294-
fld_hi = fld(a.hi, yy)
293+
fld_lo = floor(a.lo/yy)
294+
fld_hi = floor(a.hi/yy)
295295
z = zero(fld_lo)
296296
S = typeof( z )
297297
ee = emptyinterval(S)

0 commit comments

Comments
 (0)