Update util.cpp 33/head
authorfsb4000 <fsb4000@yandex.ru>
Mon, 13 Oct 2014 14:37:25 +0000 (21:37 +0700)
committerfsb4000 <fsb4000@yandex.ru>
Mon, 13 Oct 2014 14:37:25 +0000 (21:37 +0700)
Исправление небольшого бага описанного здесь https://bitcointalk.org/index.php?topic=704756.msg9162004#msg9162004

src/util.cpp

index 5422d0b..90af7b1 100644 (file)
@@ -393,7 +393,7 @@ string FormatMoney(int64 n, bool fPlus)
     int64 n_abs = (n > 0 ? n : -n);
     int64 quotient = n_abs/COIN;
     int64 remainder = n_abs%COIN;
-    string str = strprintf("%"PRI64d".%08"PRI64d, quotient, remainder);
+    string str = strprintf("%"PRI64d".%06"PRI64d, quotient, remainder);
 
     // Right-trim excess zeros before the decimal point:
     int nTrim = 0;