rational?

checks if given value is of type :rational


Parameters

rational? value :any

Attributes

bigcheck if, internally, it's a bignum

Returns

  • :logical

Examples

copy
r: to :rational 3.14 ; r: 157/50 print rational? r ; true print rational? 3.14 ; false

Related