From bebf5dad7542102a11f29446deb118b192100356 Mon Sep 17 00:00:00 2001 From: kalmar Date: Sat, 11 Feb 2017 13:46:22 +0100 Subject: [PATCH] pretty rationalize --- property(T).jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/property(T).jl b/property(T).jl index e9d0a6f..fd300d9 100644 --- a/property(T).jl +++ b/property(T).jl @@ -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) +