You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by aj...@apache.org on 2006/09/14 15:18:31 UTC

svn commit: r443342 - /incubator/tuscany/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py

Author: ajborley
Date: Thu Sep 14 06:18:31 2006
New Revision: 443342

URL: http://svn.apache.org/viewvc?view=rev&rev=443342
Log:
Added in a comment to make the example clearer

Modified:
    incubator/tuscany/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py

Modified: incubator/tuscany/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py?view=diff&rev=443342&r1=443341&r2=443342
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py (original)
+++ incubator/tuscany/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py Thu Sep 14 06:18:31 2006
@@ -44,6 +44,7 @@
 
         print "Python - DivideImpl.DivideClass.divide " + str( val1 ) + " / " + str(val2) + " = " + str(result)
 
+        # Use the doRounding property
         if doRounding:
            result = round(result)
            print "Python - DivideImpl.DivideClass.divide is rounding the result to " + str(result)
@@ -55,6 +56,7 @@
     result = float(val1) / float(val2)
     print "Python - DivideImpl.divide " + str(val1) + " / " + str(val2) + " = " + str(result)
 
+    # Use the doRounding property
     if doRounding:
         result = round(result)
         print "Python - DivideImpl.divide is rounding the result to " + str(result)



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org