This function is used to round the array values to the nearest integers towards zero.
numpy.fix(array,b = None)
An array containing the rounded values is returned.
import numpy as np
arr = [0.23, 0.09, 1.2, 1.24, 9.99]
print("Input array:",arr)
r_arr = np.fix(arr)
print("Output array:",r_arr)Output:
