コード例 #1
0
 public OclReal op_Division(OclInteger i)
 {
     if (IsNull(i))
     {
         throw new ArgumentNullException();
     }
     return(OclReal.valueOf(checked (toDouble() / i.toDouble())));
 }
コード例 #2
0
 /// <summary>
 /// Divide two unlimited naturals.
 /// </summary>
 /// <param name="u">The second operand.</param>
 /// <returns>The quotient.</returns>
 /// <exception cref="UnlimitedValueException">If either of the operands is unlimited.</exception>
 /// <exception cref="DivideByZeroException">If the second operator is zero.</exception>
 public OclReal op_Divide(OclUnlimitedNatural u)
 {
     return(OclReal.valueOf(toDouble() / u.toDouble()));
 }
コード例 #3
0
 public OclReal toReal()
 {
     return(OclReal.Parse(value));
 }