We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Rational
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
Normed supports the conversion to Rational, but does not support the conversion from Rational.
Normed
julia> N0f8(1//2) ERROR: MethodError: no method matching unsafe_trunc(::Type{UInt8}, ::Rational{Int64})
Fixed supports the conversion from Rational, but it overflows too easily.
Fixed
julia> Q0f7(1//2) ERROR: InexactError: trunc(Int8, 128)
FixedPointNumbers.jl/src/fixed.jl
Line 15 in 7ad0f0c
The text was updated successfully, but these errors were encountered:
Add support for Normed construction from Rational (Fixes #157) (#169
cb29336
) This also fixes the overflow problem with `Fixed` construction from `Rational`.
Successfully merging a pull request may close this issue.
Normed
supports the conversion toRational
, but does not support the conversion fromRational
.Fixed
supports the conversion fromRational
, but it overflows too easily.FixedPointNumbers.jl/src/fixed.jl
Line 15 in 7ad0f0c
The text was updated successfully, but these errors were encountered: