Mojo function
modf
modf(x: SIMD[type, size]) -> Tuple[SIMD[$0, $1], SIMD[$0, $1]]
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!
😔 What went wrong?