code: public void putRational(Rational val) throws IOException {
      putInt(val.getNumerator());
      putInt(val.getDenominator());
    }
docs: Puts a Rational (4 bytes).
  
  @param val the val
  @throws IOException Signals that an I/O exception has occurred.