I want to add a number to a numpy array and I would like to keep all the decimals. How can I do it? This is what I tried so far:
import numpy as np
a = np.array([0.25350021, 0.16900018, -0.16899996])
b = 1.05292844e-07
np.around(a+b,decimals=15)
The output is array([ 0.25350032, 0.16900029, -0.16899985])
, but b has non-zero digits up to 10^-15 and I would like them to appear explicitly in the numpy array. Thank you!