mrtibs
14 years agoNew Contributor
how to compare decimal values
Hi,
I need to compare a xsd:decimal (response) element with a value that I read from an Excel spreadsheet. Because the value that I need to read from the Excel spreadsheet needs to be assigned to a property, I need to convert it to a string. Unfortunately, I need to compare a string to a string. So, that means that I need to convert the returned xsd:decimal to a string as well... How do I do that? Am I going about this the wrong way? What is the best way of comparing number returned values?
Thanks,
T
I need to compare a xsd:decimal (response) element with a value that I read from an Excel spreadsheet. Because the value that I need to read from the Excel spreadsheet needs to be assigned to a property, I need to convert it to a string. Unfortunately, I need to compare a string to a string. So, that means that I need to convert the returned xsd:decimal to a string as well... How do I do that? Am I going about this the wrong way? What is the best way of comparing number returned values?
Thanks,
T