How can I print numpy array with 3 decimal places? I tried array.round(3)
but it keeps printing like this 6.000e-01
. Is there an option to make it print like this: 6.000
?
I got one solution as print ("%0.3f" % arr)
, but I want a global solution i.e. not doing that every time I want to check the array contents.