tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajbor...@apache.org
Subject svn commit: r443342 - /incubator/tuscany/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py
Date Thu, 14 Sep 2006 13:18:31 GMT
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


Mime
View raw message