Name

ratio?

Usage

builtin-function

Syntax

(ratio? expr)

Description

Returns true if expr is a BigRational number.

user > (ratio? (/ 1 2))
it: true
user > (ratio? (/ 2 2))
it: false