otp.math.ceil#
- ceil(value)#
Returns a long integer value representing the smallest integer that is greater than or equal to the
value
.Examples
>>> data = otp.Ticks(A=[-1.7, -1.5, -1.2, -1, 0 , 1, 1.2, 1.5, 1.7]) >>> data['CEIL'] = otp.math.ceil(data['A']) >>> otp.run(data) Time A CEIL 0 2003-12-01 00:00:00.000 -1.7 -1 1 2003-12-01 00:00:00.001 -1.5 -1 2 2003-12-01 00:00:00.002 -1.2 -1 3 2003-12-01 00:00:00.003 -1.0 -1 4 2003-12-01 00:00:00.004 0.0 0 5 2003-12-01 00:00:00.005 1.0 1 6 2003-12-01 00:00:00.006 1.2 2 7 2003-12-01 00:00:00.007 1.5 2 8 2003-12-01 00:00:00.008 1.7 2