Mojo function
modf
modf(x: SIMD[type, size]) -> Tuple[SIMD[type, size], SIMD[type, size]]
Computes the integral and fractional part of the value.
Args:
- x (
SIMD[type, size]
): 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!