Example #1
0
 /// <summary>
 /// See https://www.mpfr.org/mpfr-current/mpfr.pdf.
 /// </summary>
 /// <param name="rop">The result operand.</param>
 /// <param name="op1">The first operand.</param>
 /// <param name="op2">The second operand.</param>
 /// <param name="rnd">The rounding mode.</param>
 public static int sub_ui(mpfr_t rop, mpfr_t op1, ulong op2, mpfr_rnd_t rnd)
 {
     return mpfr_sub_ui(ref rop.Value, ref op1.Value, op2, (__mpfr_rnd_t)rnd);
 }
Example #2
0
 /// <summary>
 /// See https://www.mpfr.org/mpfr-current/mpfr.pdf.
 /// </summary>
 /// <param name="rop">The result operand.</param>
 /// <param name="op1">The first operand.</param>
 /// <param name="op2">The second operand.</param>
 /// <param name="rnd">The rounding mode.</param>
 public static int ui_sub(mpfr_t rop, ulong op1, mpfr_t op2, mpfr_rnd_t rnd)
 {
     return mpfr_ui_sub(ref rop.Value, op1, ref op2.Value, (__mpfr_rnd_t)rnd);
 }