[Kmymoney-devel] Access Alkimia numerator and denominator

Cristian Oneț onet.cristian at gmail.com
Thu Nov 6 10:17:23 UTC 2014


Hi,

If the AB_Value_fromString function can work with the
"numerator/denominator" format (for example: 24839/25) I would prefer
using AB_Value_fromString(value.toString().toLatin1().data()) where
value is an AlkValue (or MyMoneyMoney). This would mean using the
existing API.

Regards,
Cristian

2014-11-06 9:56 GMT+02:00 Christian Dávid <christian-david at web.de>:
> Am Mittwoch, 5. November 2014, 20:46:20 schrieb Christian Dávid:
>> I want to use it to make AB_VALUE* AB_Value_fromMyMoneyMoney(const
>> MyMoneyMoney& input) [2] better - using double here is not good. It will
>> convert the credit transfer value from KMyMoney to aqbanking.
>
> I forgot: functions which could be used are
>
> // s is the same as used in alkimia
> AB_VALUE *      AB_Value_fromString (const char *s)
> AB_VALUE *      AB_Value_fromInt (long int num, long int denom)
> AB_VALUE *      AB_Value_fromDouble (double i) // <- really bad, used now
>
>> [2]
>> https://projects.kde.org/projects/extragear/office/kmymoney/repository/revis
>> ions/add-onlinebanking/entry/kmymoney/plugins/kbanking/aqbankingqtoperators.
>> h
>
> _______________________________________________
> KMyMoney-devel mailing list
> KMyMoney-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kmymoney-devel


More information about the KMyMoney-devel mailing list