---
title: "init(amount:currencyCode:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/incurrencyamount/init(amount:currencycode:)"
---

# init(amount:currencyCode:)

Initializes a currency amount object with the specified values.

## Declaration

```swift
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

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