---
title: "NSDecimalCopy(_:_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nsdecimalcopy(_:_:)"
---

# NSDecimalCopy(_:_:)

Copies the value of a decimal number.

## Declaration

```swift
func NSDecimalCopy(_ destination: UnsafeMutablePointer<Decimal>, _ source: UnsafePointer<Decimal>)
```

## Parameters

- `destination`: A doc://com.apple.foundation/documentation/Foundation/Decimal reference that receives the copied value.
- `source`: A source doc://com.apple.foundation/documentation/Foundation/Decimal to copy.

## Discussion

Discussion Copies the value in source to destination. For more information, see Number and Value Programming Topics.

## See Also

### Creating a decimal from another decimal

- [init(signOf:magnitudeOf:)](foundation/decimal/init(signof:magnitudeof:).md)
