}
/** Tests the {@link Complex#floatValue()} method. */
public void testFloatValue() {
Complex c = new Complex(Math.random() * 100, Math.random() * 100);
assertEquals(c.floatValue(), (float) c.getReal());
}
/** Tests the {@link Complex#intValue()} method. */
public void testIntValue() {
Complex c = new Complex(Math.random() * 100, Math.random() * 100);