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:
parent
aedec8d564
commit
bebf5dad75
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user