mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2025-02-18 10:50:53 +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)
|
r(x) = rationalize(T, x, tol=tol)
|
||||||
return r.(X)
|
return r.(X)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
ℚ(x, tol::Real) = rationalize(BigInt, x, tol=tol)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user