numpy.modf()
numpy.modf
-
numpy.modf(x[, out1, out2]) =
-
Return the fractional and integral parts of an array, element-wise.
The fractional and integral parts are negative if the given number is negative.
Parameters: x : array_like
Input array.
Returns: y1 : ndarray
Fractional part of
x
.y2 : ndarray
Integral part of
x
.Notes
For integer input the return values are floats.
Examples
登录查看完整内容