You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixes for constructing a Rational from an AbstractIrrational
Fixes several issues:
* Set `BigFloat` precision without mutating the global default, relying
on the new ScopedValues functionality.
* Avoid reading the global defaults for the precision and rounding
mode, relies on #56095.
* Try to ensure the loop terminates in a reasonable amount of time, and
without trying to allocate excessively large `BigFloat` values.
Rational{T}(x::AbstractIrrational) where {T<:Integer} =_irrational_to_rational(T, x)
69
100
_throw_argument_error_irrational_to_rational_bigint() =throw(ArgumentError("Cannot convert an AbstractIrrational to a Rational{BigInt}: use rationalize(BigInt, x) instead"))
0 commit comments