What is the proper/accepted way to print and convert a numpy.float64 to a string? I\'ve noticed just using print or str() will lose some precision
print
str()
The astype method works well:
astype
>>> numpy.float64('6374.345407799015').astype(str) '6374.345407799015'
Look into numpy.set_printoptions. Specifically,
numpy.set_printoptions(precision=15)