| mpfr_libmpfr_lessequal_p Method | 
 
            Return non-zero if op1 ≤ op2, and zero otherwise.
            
 
    Namespace: 
   Math.Mpfr.Native
    Assembly:
   Math.Mpfr.Native (in Math.Mpfr.Native.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
Syntaxpublic static int mpfr_lessequal_p(
	mpfr_t op1,
	mpfr_t op2
)
Public Shared Function mpfr_lessequal_p ( 
	op1 As mpfr_t,
	op2 As mpfr_t
) As Integer
public:
static int mpfr_lessequal_p(
	mpfr_t^ op1, 
	mpfr_t^ op2
)
static member mpfr_lessequal_p : 
        op1 : mpfr_t * 
        op2 : mpfr_t -> int 
Parameters
- op1
- Type: Math.Mpfr.Nativempfr_t
 The first operand floating-point number.
- op2
- Type: Math.Mpfr.Nativempfr_t
 The second operand floating-point number.
Return Value
Type: 
Int32Return zero whenever 
op1 and/or 
op2 is NaN.
 Remarks
Remarks
            Return zero whenever op1 and/or op2 is NaN. 
            
 Examples
Examples
mpfr_t op1 = new mpfr_t();
mpfr_lib.mpfr_init2(op1, 64U);
Assert.IsTrue(mpfr_lib.mpfr_set_si(op1, 1, mpfr_rnd_t.MPFR_RNDN) == 0);
mpfr_t op2 = new mpfr_t();
mpfr_lib.mpfr_init2(op2, 64U);
Assert.IsTrue(mpfr_lib.mpfr_set_si(op2, 1, mpfr_rnd_t.MPFR_RNDN) == 0);
Assert.IsTrue(mpfr_lib.mpfr_lessequal_p(op1, op2) != 0);
mpfr_lib.mpfr_clears(op1, op2, null);
Dim op1 As mpfr_t = New mpfr_t()
mpfr_lib.mpfr_init2(op1, 64U)
Assert.IsTrue(mpfr_lib.mpfr_set_si(op1, 1, mpfr_rnd_t.MPFR_RNDN) = 0)
Dim op2 As mpfr_t = New mpfr_t()
mpfr_lib.mpfr_init2(op2, 64U)
Assert.IsTrue(mpfr_lib.mpfr_set_si(op2, 1, mpfr_rnd_t.MPFR_RNDN) = 0)
 Assert.IsTrue(mpfr_lib.mpfr_lessequal_p(op1,op2) <> 0)
mpfr_lib.mpfr_clears(op1, op2, Nothing)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
 See Also
See Also