Created
December 6, 2017 21:22
-
-
Save cossio/73eee09d036c993732c8b4c6245ba3aa to your computer and use it in GitHub Desktop.
@show number array without losing digits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@show rand(3); | |
# out | |
# rand(3) = [0.867693, 0.141908, 0.0269334] | |
# doesn't show all digits. | |
show(IOContext(STDOUT, :compact=>false), rand(3)); | |
# out | |
# [0.6212121566260771, 0.9149696195383878, 0.6989968224489542] | |
# shows all digits | |
# This is only needed in v0.6. In v0.7 it seems that @show by default shows all digits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credits to Kristoffer Carlsson. https://julialang.slack.com/archives/C67910KEH/p1512562370000099