Skip to content

Commit

Permalink
Update ArbReal.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff committed Jul 10, 2019
1 parent 6996dd4 commit 1b41a0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libarb/ArbReal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ end


fld(x::ArbReal{P}, y::ArbReal{P}) where {P} =
floor(x / y)
floor(x / y)

mod(x::ArbReal{P}, y::ArbReal{P}) where {P} =
x - (fld(x,y) * y)
Expand All @@ -188,6 +188,8 @@ function fldmod(x::ArbReal{P}, y::ArbReal{P}) where {P}
return (fd, md)
end

cld(x::ArbReal{P}, y::ArbReal{P}) where {P} =
ceil(x / y)

function midpoint(x::ArbReal{P}) where {P}
z = ArbReal{P}()
Expand Down

2 comments on commit 1b41a0e

@JeffreySarnoff
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

floating point versions of div, fld, cld, mod, rem, divrem, fldmod

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/1928

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.2 -m "<description of version>" 1b41a0ed7262c5b5b2cd24071c5d242d4e3c4bc7
git push origin v0.6.2

Please sign in to comment.