rational?

checks if given value is of type :rational


Parameters

rational? value :any

Returns

  • :logical

Examples

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

Related