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.
Usage
rat(1 1.25 1.5 1.75) ## 1 5/4 3/2 7/4