[kmymoney] [Bug 491828] Currency settings show incorrect

Ralf Habacker bugzilla_noreply at kde.org
Mon Aug 19 15:52:40 BST 2024


https://bugs.kde.org/show_bug.cgi?id=491828

--- Comment #3 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Ralf Habacker from comment #2)

As the problem here is the call to formatMoney() it may be named better: 

void MyMoneySecurityTest::testFormatMoney()
{
    MyMoneySecurity currency("BTC", "Bitcoin", "BTC", 100000000, 100000000);
    int precision =
MyMoneyMoney::denomToPrec(currency.smallestAccountFraction());
    MyMoneyMoney smallestFraction = MyMoneyMoney::ONE /
MyMoneyMoney(currency.smallestAccountFraction());
    QCOMPARE(smallestFraction.formatMoney(QString(), precision),
QLatin1String("0.00000001"));
}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list