Possible Duplicate:
Elegant workaround for JavaScript floating point number problem
var sum = 0;
$('[id$=percentOfTotalEditor]').each(
function () {
var igEditor = $find(this.id);
var value = igEditor.get_value();
sum += value;
}
);
Then you'll see the magic:
sum == 1.1, value == 0.1. But after sum += value, sum == 1.2000000000000001
WTF!?