Skip to content

Commit

Permalink
Change fld(a,b) -> floor(a,b)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Benet committed Jun 29, 2018
1 parent b27263a commit 1061f22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/intervals/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ end
# mod
function mod(a::Interval, y::T) where {T<:Real}
yy = abs(y)
fld_lo = fld(a.lo, yy)
fld_hi = fld(a.hi, yy)
fld_lo = floor(a.lo/yy)
fld_hi = floor(a.hi/yy)
z = zero(fld_lo)

if fld_lo != fld_hi
Expand All @@ -290,8 +290,8 @@ end

function extended_mod(a::Interval, y::T) where {T<:Real}
yy = abs(y)
fld_lo = fld(a.lo, yy)
fld_hi = fld(a.hi, yy)
fld_lo = floor(a.lo/yy)
fld_hi = floor(a.hi/yy)
z = zero(fld_lo)
S = typeof( z )
ee = emptyinterval(S)
Expand Down

0 comments on commit 1061f22

Please sign in to comment.