List of usage examples for org.apache.commons.math3.fraction BigFraction toString
@Override
public String toString()
Returns the String
representing this fraction, ie "num / dem" or just "num" if the denominator is one.
From source file:org.matheclipse.commons.parser.client.eval.bigfraction.BigFractionEvaluator.java
/** * Returns a <code>String</code> representation of the given * <code>org.apache.commons.math3.fraction.BigFraction</code> number. * //from w ww. j a va 2 s .c o m * @param c * @return * */ public static String toString(BigFraction bf) { return bf.toString(); }