aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2011-07-04 19:26:10 -0700
committerGavin Andresen <[email protected]>2011-07-04 19:26:10 -0700
commit9390431ce49893cbdf23846edb4bdf72b3d4e830 (patch)
tree69e072dd00f112a8ffddc92419756865faf88afd /src/util.cpp
parentMerge pull request #380 from TheBlueMatt/buildupdates (diff)
parentDo not use comma as thousands separator (diff)
downloaddiscoin-9390431ce49893cbdf23846edb4bdf72b3d4e830.tar.xz
discoin-9390431ce49893cbdf23846edb4bdf72b3d4e830.zip
Merge pull request #379 from gavinandresen/nocommasv0.3.24rc2
Do not use comma as thousands separator
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/util.cpp b/src/util.cpp
index b18d75c6a..479c601ee 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -346,11 +346,6 @@ string FormatMoney(int64 n, bool fPlus)
if (nTrim)
str.erase(str.size()-nTrim, nTrim);
- // Insert thousands-separators:
- size_t point = str.find(".");
- for (int i = (str.size()-point)+3; i < str.size(); i += 4)
- if (isdigit(str[str.size() - i - 1]))
- str.insert(str.size() - i, 1, ',');
if (n < 0)
str.insert((unsigned int)0, 1, '-');
else if (fPlus && n > 0)
@@ -373,8 +368,6 @@ bool ParseMoney(const char* pszIn, int64& nRet)
p++;
for (; *p; p++)
{
- if (*p == ',' && p > pszIn && isdigit(p[-1]) && isdigit(p[1]) && isdigit(p[2]) && isdigit(p[3]) && !isdigit(p[4]))
- continue;
if (*p == '.')
{
p++;