Skip to main content

Mojo function

max_finite

max_finite[dtype: DType]() -> Scalar[dtype]

Returns the maximum finite value of type.

Parameters:

  • dtype (DType): The value dtype.

Returns:

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

Was this page helpful?