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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]