Top "Comparison" questions

Questions about data comparison and efficient ways to accomplish it.

Has anyone published a detailed comparison between different in-memory RDBMSs?

There are quite a few independent and not-so-independent studies comparing traditional RDBMSs but I haven't managed to find any good …

database comparison rdbms in-memory in-memory-database
Comparing floating point numbers in C

I've got a double that prints as 0.000000 and I'm trying to compare it to 0.0f, unsuccessfully. Why is there a …

c comparison floating-point zero
How to compare two floating-point values in shell script

I had to do a division in shell script and the best way was: result1=`echo "scale=3; ($var1 / $total) * 100"| bc …

linux comparison shell conditional-statements bc
spring mvc vs seam

Spring mvc is a framework that has been long time out there, it is well documented and proven technology. A …

spring comparison seam
Scala XML.loadString vs literal expression

I have been experimenting with Scala and XML and I found a strange difference in behavior between a XML tag …

xml string scala comparison transformation
What does comparison being consistent with equals mean ? What can possibly happen if my class doesn't follow this principle?

From the JavaDoc of TreeMap : Note that the ordering maintained by a sorted map (whether or not an explicit comparator …

java comparison equals comparator comparable
Using InvariantCultureIgnoreCase instead of ToUpper for case-insensitive string comparisons

On this page, a commenter writes: Do NOT ever use .ToUpper to insure comparing strings is case-insensitive. Instead of this: …

c# .net string comparison case-insensitive
Is it safe to assume strict comparison in a JavaScript switch statement?

I have a variable that can either be boolean false, or an integer (including 0). I want to put it in …

javascript types comparison type-conversion switch-statement
In PHP, is there a short way to compare a variable to multiple values?

Basically what I'm wondering if there is a way to shorten something like this: if ($variable == "one" || $variable == "two" || $variable == "…

php variables comparison shorthand