Skip to main content
Log in

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.