I see that there are two types, ‘Amount’ and ‘ParsedAmount’,
defined in api-common.rst. There is also the blurb:
// For example, a fraction
// of 50,000,000 would correspond to 50 cents.
(in the ‘ParsedAmount’ explanation for field ‘fraction’).
My understanding is that when i write ‘Amount’ "EUR:1.50", that
corresponds to (becomes, after parsing) the ‘ParsedAmount’
object:
{
"currency": "EUR",
"value": 1,
"fraction": 50000000
}
That is, the ".50" portion of ‘Amount’ is textually "zero-
extended" to eight digits before applying some kind of ‘atol’
function.
My questions are:
(a) Is that correct?
(b) For future reference, where can i find this in the source?
(Which repo?)