Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--talogo.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/talogo.py b/talogo.py
index 9dc2b58..1210d27 100644
--- a/talogo.py
+++ b/talogo.py
@@ -127,7 +127,15 @@ def taplus(x, y):
(type(y) == int or type(y) == float):
return(x+y)
else:
- return(str(x) + str(y))
+ try:
+ xx = round_int(x)
+ except ValueError:
+ xx = x
+ try:
+ yy = round_int(y)
+ except ValueError:
+ yy = y
+ return(str(xx) + str(yy))
def taminus(x, y):
if (type(x) == int or type(x) == float) and \