This commit is contained in:
jed
2012-05-15 16:16:44 -07:00
parent e217f30bfd
commit fec2aeb579
11 changed files with 263 additions and 162 deletions

View File

@@ -54,6 +54,6 @@ double Amount::getDisplayQuantity() const
{
if(!mCurrency.isNational()) throw std::runtime_error("Can only scale national currencies");
int scale=mCurrency.getScale();
return static_cast<double>(mQuantity) * pow(10, 128-scale);
return static_cast<double>(mQuantity) * pow((double)10, 128-scale);
}