-
Notifications
You must be signed in to change notification settings - Fork 17
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
Show of Vector{Particles} #92
Comments
It's intentional, but poorly implemented at the moment
Should probably use printf instead of the round function with sigdigits keyword? |
Should it be different between arrays and scalars? |
The idea is to not overwhelm the user with too many digits, similar to the difference julia> rand()
0.22107097572682943
julia> rand(3,3)
3×3 Array{Float64,2}:
0.831273 0.407677 0.509738
0.924296 0.0520808 0.925542
0.17117 0.44741 0.224877 But I think julia> @printf("%4.3g", 10001.0)
1e+04 Ideally, the number of digits to show should depend on the standard deviation of the sample. There is no point in showing many digits of the mean if they are not significant. |
Sounds good. So, for instance:
should print as |
Something like that, yes :) |
The show method seems to to some rounding with particles in an array:
Is this intentional? If so, then it should take into account the significant digits according to the uncertainty.
The text was updated successfully, but these errors were encountered: