Skip to main content

function

trunc

trunc[T: Truncable](value: T) -> $0

Get the truncated value of the given object.

Parameters:

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

Args:

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

Returns:

The truncated value of the object.

Was this page helpful?