Yields the value as a C# double if PlTerm represents a Prolog integer or float.
Throws a PlTypeException exception otherwise.

C# | Visual Basic | Visual C++ | F# |
public static explicit operator double ( PlTerm term )
Public Shared Narrowing Operator CType ( term As PlTerm ) As Double
static explicit operator double ( PlTerm term )

- term (PlTerm)
- A PlTerm represents a Prolog integer or float

Double
A C# double
A C# double

Exception | Condition |
---|---|
PlTypeException | Throws a PlTypeException exception if PlType
is not a PlType.PlInteger or a PlType.PlFloat. |
PreconditionException | Is thrown if the operator is used on an uninitialized PlTerm |
Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60601.0 (1.1.60601.0)