Numpy floor()This function returns the floor value of the input array elements. The floor of a number x is i if i is the largest integer such that, i<=x. SyntaxParameters
ReturnAn array containing the floor values is returned. ExampleOutput: Input array: [0.23, 0.09, 1.2, 1.24, 9.99] Output array: [0. 0. 1. 1. 9.] Input array: [145.23, 0.12, 12.34, 123] Output array: [145. 0. 12. 123.] Next TopicNumpy rint() |