XPRBexprLeEq(XPRBexpr, Double) Method |
Create an XPRBrelation from an XPRBexpr and a double. Less than or equal to.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic static XPRBrelation LeEq(
XPRBexpr l1,
double dl2
)
Public Shared Function LeEq (
l1 As XPRBexpr,
dl2 As Double
) As XPRBrelation
Parameters
- l1 XPRBexpr
- The lhs XPRBexpr.
- dl2 Double
- The rhs double.
Return Value
XPRBrelationThe resultant XPRBrelation.
RemarksThis is usually used when creating relations for those languages that do not allow
operator overloading.
ExampleXPRBvar var = new XPRBvar("Variable1");
XPRBexpr exp = new XPRBexpr(var - 19.6)
XPRBrelation rel;
...
rel = XPRBexpr.LeEq(exp, 37.1);
See Also