1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-26 17:05:27 +01:00

pretty rationalize

This commit is contained in:
kalmar 2017-02-11 13:46:22 +01:00
parent aedec8d564
commit bebf5dad75

View File

@ -150,3 +150,6 @@ function rationalize{T<:Integer, S<:Real}(::Type{T},
r(x) = rationalize(T, x, tol=tol)
return r.(X)
end;
(x, tol::Real) = rationalize(BigInt, x, tol=tol)