public IValue toInt(IRational n) // @doc{toReal -- convert a rational value to a integer value.} { return n.toInteger(); }