java.math.BigDecimal.round C# (CSharp) Method

round() public method

public round ( java arg0 ) : global::java.math.BigDecimal
arg0 java
return global::java.math.BigDecimal
        public virtual global::java.math.BigDecimal round(java.math.MathContext arg0)
        {
            return global::MonoJavaBridge.JavaBridge.CallObjectMethod(this, global::java.math.BigDecimal.staticClass, "round", "(Ljava/math/MathContext;)Ljava/math/BigDecimal;", ref global::java.math.BigDecimal._m21, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)) as java.math.BigDecimal;
        }

Usage Example

Example #1
0
 /**
  * Returns this complex nuber rounded to the specified precision.
  *
  * <p>This methods <strong>does not</strong> modify this instance.</p>
  *
  * @param mathContext the {@link MathContext} used to calculate the result
  * @return the rounded {@link BigComplex} result
  */
 public BigComplex round(MathContext mathContext)
 {
     return(valueOf(re.round(mathContext), im.round(mathContext)));
 }