Skip to main content

trunc

trunc(
@x ? ## required
) -> llll/null
note

trunc is a built-in function in the bell programming language and is not unique or exclusive to bellplay~.

Returns the truncated value of @x.


Arguments

  • @x [int/float/llll] Numeric llll.(required)

Output

Truncated value of @x. [llll/null]

warning

trunc will return null without raising an error if required arguments are not provided.