Skip to main content

Mojo function

min_or_neg_inf

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

Returns the minimum (potentially negative infinite) value of type.

Parameters:

  • dtype (DType): The value dtype.

Returns:

Scalar: The minimum representable value of the type. Can include negative infinity for floating-point types.

Was this page helpful?