Skip to main content

sgn

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

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

Returns the sign of @x.


Arguments

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

Output

Sign of @x. [llll/null]

warning

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