Skip to main content
Log in

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?