Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/talogo.py
diff options
context:
space:
mode:
Diffstat (limited to 'talogo.py')
-rw-r--r--talogo.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/talogo.py b/talogo.py
index 145d3aa..e44e2ee 100644
--- a/talogo.py
+++ b/talogo.py
@@ -351,9 +351,17 @@ def taequal(x,y):
def taless(x,y):
try:
- return(x<y)
+ return float(x)<float(y)
except:
- raise logoerror("#syntaxerror")
+ if type(x) == str or type(x) == unicode:
+ xx = ord(x[0])
+ else:
+ xx = x
+ if type(y) == str or type(y) == unicode:
+ yy = ord(y[0])
+ else:
+ yy = y
+ return xx<yy
def tamore(x,y):
return taless(y,x)