From 8f5d94c6ecd56e36cfebb7d0599fbfaa80a2b8a0 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 12 Feb 2010 02:53:05 +0000 Subject: round_int numbers converted to strings --- (limited to 'talogo.py') 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 \ -- cgit v0.9.1