We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
numerator(::FD)
denominator(::FD)
We already support converting a FixedDecimal to a Rational, via:
FixedPointDecimals.jl/src/FixedPointDecimals.jl
Lines 324 to 326 in e8c9f3b
We should also provide numerator() and denominator(), as part of that interface. They might be implemented like this:
numerator()
denominator()
function Base.numerator(x::FixedDecimal{T,f})::T where {T, f} return value(x) end function Base.denominator(x::FixedDecimal{T,f})::T where {T, f} return coefficient(x) end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We already support converting a FixedDecimal to a Rational, via:
FixedPointDecimals.jl/src/FixedPointDecimals.jl
Lines 324 to 326 in e8c9f3b
We should also provide
numerator()
anddenominator()
, as part of that interface. They might be implemented like this:The text was updated successfully, but these errors were encountered: