Skip to main content
Log in

Mojo function

max_finite

max_finite[type: DType]() -> SIMD[$0, 1]

Returns the maximum finite value of type.

Parameters:

  • type (DType): The value dtype.

Returns:

The maximum representable value of the type. Does not include infinity for floating-point types.

Was this page helpful?