mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
windows
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user