From 3b7a6dfd8ccb6a121bc218e06db21b2fc2d6c0a6 Mon Sep 17 00:00:00 2001 From: fsb4000 Date: Mon, 13 Oct 2014 21:37:25 +0700 Subject: [PATCH] Update util.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Исправление небольшого бага описанного здесь https://bitcointalk.org/index.php?topic=704756.msg9162004#msg9162004 --- src/util.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 5422d0b..90af7b1 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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; -- 1.7.1