ExprRationalQ Method

Tells whether the Expr represents a Wolfram Language Rational number.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public bool RationalQ()

Return Value

Boolean
true, if the Expr is a non-integer Rational number; false otherwise.

Remarks

Works like the following test in the Wolfram Language: Head[e] === Rational.

See Also