Skip to main content

num

num(
@x ## required
) -> llll/null

Returns the numerator of @x, which is assumed to be a rational value.


Arguments

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

Output

Numerator of @x. [llll/null]

warning

num is a built-in function in the bell programming language and is not unique or exclusive to bellplay~. As such, num will return null without raising an error if required arguments are not provided.


Usage

num(4/3 3/3 2/3 1/3) ## 4 1 2 1