trunc
trunc(
@x ## required
) -> llll/null
Returns the truncated value of @x, by removing any decimal places.
Arguments
@x[int/float/llll] Numeric llll.(required)
Output
Truncated value of @x. [llll/null]
warning
trunc is a built-in function in the bell programming language and is not unique or exclusive to bellplay~. As such, trunc will return null without raising an error if required arguments are not provided.
Usage
trunc(-6.6 -3.3 3.3 6.6) ## -6.0 -3.0 3.0 6.0