Example usage for org.apache.commons.math3.fraction BigFraction toString

List of usage examples for org.apache.commons.math3.fraction BigFraction toString

Introduction

In this page you can find the example usage for org.apache.commons.math3.fraction BigFraction toString.

Prototype

@Override
public String toString() 

Source Link

Document

Returns the String representing this fraction, ie "num / dem" or just "num" if the denominator is one.

Usage

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();
}