Money
    
    
      
    
    
      
      Zadbaj o dobrą organizację dzięki kolekcji
    
    
      
      Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
    
    
    
      
      
        Reprezentuje kwotę za pomocą jej typu waluty.
      
      
        
          
            
              | Zapis JSON | 
          
          
            
              | {
  "currencyCode": string,
  "units": string,
  "nanos": integer
} | 
          
        
      
      
        
          
            
            
          
          
            
              | Pola | 
          
          
            
              | currencyCode | string
 Trzyliterowy kod waluty zdefiniowany w normie ISO 4217. | 
            
              | units | string (int64 format)
 Całkowita jednostka kwoty. Jeśli na przykład currencyCodeto"USD", 1 jednostka to 1 zł. | 
            
              | nanos | integer
 Liczba jednostek nano (10^-9) ilości. Wartość musi mieścić się w zakresie od -999 999 999 do +999 999 999 włącznie. Jeśli unitsma wartość dodatnią,nanosmusi być liczbą dodatnią lub zero. Jeśliunitsma wartość 0,nanosmoże być liczbą dodatnią, zerową lub ujemną. Jeśliunitsma wartość ujemną,nanosmusi mieć wartość ujemną lub zero. Na przykład -1,75 zł jest przedstawione jakounits=-1 inanos=-750 000 000. | 
          
        
      
    
  
  
  
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
  Ostatnia aktualizacja: 2025-07-26 UTC.
  
  
  
    
      [[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]