K
kilik3000
This may be a dumb question but...
When running the following code:
//...
int price = 57;
double taxedPrice1 = price + (price * .18);
double taxedPrice2 = price * 1.18;
//...
Why does taxedPrice1 == "67.26" while taxedPrice2 ==
"67.259999999999991" ?
-Thx
When running the following code:
//...
int price = 57;
double taxedPrice1 = price + (price * .18);
double taxedPrice2 = price * 1.18;
//...
Why does taxedPrice1 == "67.26" while taxedPrice2 ==
"67.259999999999991" ?
-Thx