Skip to main content

rat

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

Casts value of @x as rat.


Arguments

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

Output

llll casted as rational [llll/null]

warning

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