Money
    
    
      
    
    
      
      コレクションでコンテンツを整理
    
    
      
      必要に応じて、コンテンツの保存と分類を行います。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
      
        
          
            
              | JSON 表現 | 
          
          
            
              | {
  "currencyCode": string,
  "units": string,
  "nanos": integer
} | 
          
        
      
      
        
          
            
            
          
          
            
              | フィールド | 
          
          
            
              | currencyCode | string
 ISO 4217 で定義されている 3 文字の通貨コード。 | 
            
              | units | string (int64 format)
 金額の整数部分。たとえば、currencyCodeが"USD"の場合、1 単位は 1 米ドルです。 | 
            
              | nanos | integer
 金額の小数部分をナノ(10^-9)単位で表した数。値は -999,999,999 以上 +999,999,999 以下でなければなりません。unitsが正の場合、nanosには正数または 0 を指定します。unitsがゼロの場合、nanosには正数、0、または負数を指定できます。unitsが負の場合、nanosは負数または 0 を指定します。たとえば、$-1.75 はunits= -1、nanos= -750,000,000 と表されます。 | 
          
        
      
    
  
  
  
  
 
  
    
    
      
       
    
    
  
  
  特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
  最終更新日 2025-07-26 UTC。
  
  
  
    
      [null,null,["最終更新日 2025-07-26 UTC。"],[],["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"]]