Mojo function
modf
modf[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> Tuple[SIMD[dtype, width], SIMD[dtype, width]]
Computes the integral and fractional part of the value.
Parameters:
- dtype (
DType
): Thedtype
of the input and output SIMD vector. - width (
Int
): The width of the input and output SIMD vector.
Args:
- x (
SIMD[dtype, width]
): The input value.
Returns:
A tuple containing the integral and fractional part of the value.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!