Số nguyên của số tiền. Ví dụ: nếu currencyCode là "USD", thì 1 đơn vị là 1 đô la Mỹ.
nanos
integer
Số lượng đơn vị nano (10^-9) của số tiền. Giá trị phải nằm trong khoảng từ -999.999.999 đến +999.999.999. Nếu units dương, nanos phải dương hoặc bằng 0. Nếu units bằng 0, nanos có thể là số dương, 0 hoặc số âm. Nếu units âm, thì nanos phải âm hoặc bằng 0. Ví dụ: -1,75 đô la được biểu thị là units=-1 và nanos=-750.000.000.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-11-27 UTC."],[[["JSON is used to represent monetary amounts with their currency type."],["The representation includes the currency code (ISO 4217), whole units, and nano units for precision."],["`units` and `nanos` must adhere to specific rules based on their values to ensure accurate representation."],["The `currencyCode` follows the ISO 4217 standard using a three-letter code."]]],["The core content defines a JSON structure for representing monetary amounts. It includes three fields: `currencyCode` (a string for the three-letter currency code), `units` (a string representing whole units of the currency), and `nanos` (an integer for the fractional nano-units). The `nanos` value must adhere to constraints based on the sign of `units` and is used for precision in amounts. The amount value is based on those three elements.\n"]]