1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-10-15 08:05:35 +02: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)