-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
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
Making display style consistent with Base
#188
Comments
This is an off topic, but I think we should also revise the message of We often use the aliases (e.g. julia> 2.0N0f8
ERROR: ArgumentError: Normed{UInt8,8} is an 8-bit type representing 256 values from 0.0 to 1.0; cannot represent 2.0 Also, I prefer the "2^n" notation for numbers larger than 5 digits. julia> 1e10N16f16
ERROR: ArgumentError: Normed{UInt32,16} is a 32-bit type representing 4294967296 values from 0.0 to 65537.0; cannot represent 1.0e10
julia> Normed{UInt128,100}(10^9) # 0 values!?
ERROR: ArgumentError: Normed{UInt128,100} is a 128-bit type representing 0 values from 0.0 to 2.68435e8; cannot represent 1000000000 What I personally think is more important is the compilation time of FixedPointNumbers.jl/src/FixedPointNumbers.jl Lines 320 to 327 in cab78d7
|
It looks like the github's database is inconsistent. I'm sorry for making noise. |
Thanks to the JuliaLang/julia#36107, Julia nightly (1.6.0-DEV) now uses the exported type-aliases (e.g.
N0f8
) for printing types.Julia 1.4.2
Julia 1.6.0-DEV.356
I think we should avoid unnecessary customization on Julia v1.6 and above. Also,
FixedPointNumbers.showtype
should be more strict.In the next minor update of ColorTypes (i.e. v0.11), the display bug of
AGray32
will be fixed. In line with that, I plan to revise the display of Color Types as well. (cf. JuliaGraphics/ColorTypes.jl#191, JuliaGraphics/ColorTypes.jl#202)The text was updated successfully, but these errors were encountered: