From: fsb4000 Date: Mon, 13 Oct 2014 14:37:25 +0000 (+0700) Subject: Update util.cpp X-Git-Tag: nvc-v0.5.0~65^2~6 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=3b7a6dfd8ccb6a121bc218e06db21b2fc2d6c0a6 Update util.cpp Исправление небольшого бага описанного здесь https://bitcointalk.org/index.php?topic=704756.msg9162004#msg9162004 --- 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;