Articles → Numpy → Spacing Function In NumpySpacing Function In NumpyIn this article, we will discuss the spacing function in NumPy.Purpose Spacing is the difference between a number x and the next floating-point value.Example import numpy as np print("Spacing between 1 and adjacent no is:", np.spacing(1))Output Click to EnlargePosted By - Karan Gupta Posted On - Wednesday, June 12, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
import numpy as np print("Spacing between 1 and adjacent no is:", np.spacing(1))
Query/Feedback