Google 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
Money
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
| JSON 表示法 |
{
"currencyCode": string,
"units": string,
"nanos": integer
} |
| 字段 |
currencyCode |
string
采用 ISO 4217 标准定义的三位字母货币代码。
|
units |
string (int64 format)
金额的整数单位。例如,如果 currencyCode 是 "USD",则 1 单位就是一美元。
|
nanos |
integer
以纳单位 (10^-9) 表示的金额数量。取值范围必须在 -999,999,999 至 +999,999,999 之间(含边界值)。如果 units 是正数,nanos 必须是正数或零。如果 units 为零,nanos 可以是正数、零或负数。如果 units 是负数,nanos 必须是负数或零。例如,$-1.75 表示为 units=-1 和 nanos=-750,000,000。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-07-13。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-07-13。"],[],[]]