<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INCurrencyAmount/init(amount:currencyCode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INCurrencyAmount(im)initWithAmount:currencyCode:"
  },
  "title" : "init(amount:currencyCode:)"
}
-->

# init(amount:currencyCode:)

Initializes a currency amount object with the specified values.

```
init(amount: NSDecimalNumber, currencyCode: String)
```

## Parameters

`amount`

The decimal number representing the amount of money.

`currencyCode`

The ISO 4217 currency code to apply to the specified `amount`. You can get a list of possible currency codes using the <doc://com.apple.documentation/documentation/Foundation/NSLocale/isoCurrencyCodes> method of <doc://com.apple.documentation/documentation/Foundation/NSLocale>. For example, the string “USD” corresponds to United States dollars.

## Return Value

An initialized currency amount object or `nil` if the object could not be created.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)