Skip to content

Instantly share code, notes, and snippets.

@cossio
Created December 6, 2017 21:22
Show Gist options
  • Save cossio/73eee09d036c993732c8b4c6245ba3aa to your computer and use it in GitHub Desktop.
Save cossio/73eee09d036c993732c8b4c6245ba3aa to your computer and use it in GitHub Desktop.
@show number array without losing digits
@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
@cossio
Copy link
Author

cossio commented Dec 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment