Im in school, taking C++, and acnt get one line on my assingment to work.
I have coded it in consol, and it works, but as a win 32 app, it just wont work right??
why?
//CONSOL LINE
fTaxRate = (TaxReturn::TaxesPayable() / m_fTaxableIncome) * 100 + 0.05; //rouned
// returns expected values
//WIN APP
fRateOfTax = (TaxReturn::TaxesPayable() / m_nTaxableIncome) * 100; //sprintf %.1f rounds for me
// always returns 0.0?!?!?
ALL FIXED, stupid Type Casting
Bookmarks