fn modf(x: anytype) modf_result(@TypeOf(x))

Returns the integer and fractional floating-point numbers that sum to x. The sign of each result is the same as the sign of x.

Special Cases:

  • modf(+-inf) = +-inf, nan
  • modf(nan) = nan, nan

Parameters

x: anytype,