<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-9">
</head>
<body bgcolor="#FFFFFF" text="#000000">
hi;<font face="Courier New"><br>
-----------------------<br>
<font color="#3366ff">check=(1,2,3,4,5,6,7,8,9,"/","*","-","+","(",")","[","]")<br>
<br>
while True:<br>
a=raw_input("type your query : \n")<br>
c=set(a).intersection(set(check))<br>
<br>
if c:<br>
print <b>eval("float(%s)"%a)</b><br>
else:<br>
print "error! please use -defined operators-!"</font><br>
</font><font face="Courier New, Courier, monospace">-----------------------------</font><br>
<font face="Courier New"><br>
</font>this script works.. but if i type <br>
<br>
15/8<br>
<br>
it returns 1.. no floatin'.. i must fix this? can anyone help me?<br>
</body>
</html>