Added "toString" method.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145932 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2011-07-13 09:41:49 +00:00
parent bf05f11de3
commit 29db2a8953

View File

@ -1012,4 +1012,9 @@ public class Complex implements FieldElement<Complex>, Serializable {
return ComplexField.getInstance();
}
/** {@inheritDoc} */
@Override
public String toString() {
return "(" + real + ", " + imaginary + ")";
}
}