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
don't mutate globals when constructing Rational from AbstractIrrational
Relying on `ScopedValues`, set `BigFloat` precision without mutating
the global default, while constructing `Rational` from
`AbstractIrrational`.
Also helps avoid reading the global defaults for the precision and
rounding mode, together with JuliaLang#56095.
Rational{T}(x::AbstractIrrational) where {T<:Integer} =_irrational_to_rational(T, x)
78
101
_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