Skip to main content
Log in

Mojo function

abs

abs[T: Absable](value: T) -> T

Get the absolute value of the given object.

Parameters:

  • T (Absable): The type conforming to Absable.

Args:

  • value (T): The object to get the absolute value of.

Returns:

The absolute value of the object.