This commit is contained in:
JoelKatz
2012-04-11 14:59:31 -07:00
parent ded4d19a65
commit 1c895a593d

View File

@@ -58,6 +58,11 @@ STAmount* STAmount::construct(SerializerIterator& sit, const char *name)
return new STAmount(name, value, offset);
}
std::string STAmount::getRaw() const
{ // show raw internal form
return boost::lexical_cast<std::string>(value) + "e" + boost::lexical_cast<std::string>(offset);
}
std::string STAmount::getText() const
{
if (value == 0) return "0";