[kmymoney] [Bug 491828] Currency settings show incorrect
Ralf Habacker
bugzilla_noreply at kde.org
Tue Aug 20 10:20:42 BST 2024
https://bugs.kde.org/show_bug.cgi?id=491828
--- Comment #9 from Ralf Habacker <ralf.habacker at freenet.de> ---
This issue does not occur with a basic Qt test case. Running the following
tests build with MinGW as simple qt console app
const QLocale btc("BTC");
QCOMPARE(btc.toCurrencyString(double(1e-1), "BTC", 1),
QString("0.1BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-2), "BTC", 2),
QString("0.01BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-3), "BTC", 3),
QString("0.001BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-4), "BTC", 4),
QString("0.0001BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-5), "BTC", 5),
QString("0.00001BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-6), "BTC", 6),
QString("0.000001BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-7), "BTC", 7),
QString("0.0000001BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-8), "BTC", 8),
QString("0.00000001BTC"));
does not fail. There must be something different in kmymoney.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list