.NET/Link API Version 1.6 USE FRAMES

Expr.RationalQ Method 

Tells whether the Expr represents a Mathematica Rational number.

[Visual Basic]
Public Function RationalQ() As Boolean
[C#]
public bool RationalQ();

Return Value

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

Remarks

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

See Also

Expr Class | Wolfram.NETLink Namespace