Explicit Operator
Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
Explicit Operator
SwiPlCs interface ► SbsSW.SwiPlCs ► PlTerm ► ExplicitNarrowingExplicitExplicitExplicit(PlTerm to Double)
Yields the value as a C# double if PlTerm represents a Prolog integer or float.
Throws a PlTypeException exception otherwise.
- term (PlTerm)
- A PlTerm represents a Prolog integer or float
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 |