sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28341
Re: [Question #254570]: Value is not getting matched when comma inserted.
Question #254570 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254570
Status: Needs information => Open
Subhasree Mohapatra gave more information on the question:
The code is
dir_xl ="C:\\Program Files\\SIKULI\\Lib\\xlrd"
dir_xw ="C:\\Program Files\\SIKULI\\Lib\\xlwt"
dir_xu="C:\\Program Files\\SIKULI\\Lib\\xlutils"
import xlutils
import xlrd
import xlwt
i=222.43
j=2222.43
k=2222.43
book= xlrd.open_workbook ( "C:\Users\Subhasree\Desktop\Values.xls" )
sheet = book.sheet_by_index(0)
a=float(sheet.cell_value(0,0))
print a
if(a==i):
print("pass")
else:
print ("fail")
if(a==j):
print("pass")
else:
print ("fail")
if(a==k):
print("pass")
else:
print ("fail")
Result is :
2222.43
fail
pass
pass
The moment i change the value to k=2,222.43
result is:
2222.43
fail
pass
fail
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.