AI-generated Key Takeaways
-
The JSON representation for money includes the currency code, whole units, and nano units.
-
The
currencyCodefield uses the three-letter ISO 4217 standard. -
The
unitsfield represents the whole amount, whilenanosrepresents the fractional part in billionths. -
The
nanosfield has constraints on its value based on whether theunitsfield is positive, zero, or negative.
Represents an amount of money with its currency type.
| JSON representation |
|---|
{ "currencyCode": string, "units": string, "nanos": integer } |
| Fields | |
|---|---|
currencyCode |
The three-letter currency code defined in ISO 4217. |
units |
The whole units of the amount. For example if |
nanos |
Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If |