Hi!
здесь есть пример

Код:
q = 10.2 - 8.1;
trace(q);
trace(q == 2.1); //выводит false
а как это обходить-то?
***
ЗЫ
что странно - через такую функцию работает

Код:
roundTo = function (theNumber, decPlaces) {
if (decPlaces>=0) {
var temp = Math.pow(10, decPlaces);
return Math.round(theNumber*temp)/temp;
}
}
trace (roundTo((10.2 - 8.1), 2) == 2.1); //выводит true
trace (roundTo((8.52 - 8.51), 2) == 0.01); //выводит true
,a через такую - нет

Код:
transit = function (tt){
String(tt);
return Number(tt)
}
trace(transit(10.2 - 8.1) == 2.1); //выводит false
