---
title: "advanced(by:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/decimal/advanced(by:)"
---

# advanced(by:)

Returns a new value advanced by the given distance.

## Declaration

```swift
func advanced(by n: Decimal) -> Decimal
```

## See Also

### Comparing decimals

- [isEqual(to:)](foundation/decimal/isequal(to:).md)
- [isLess(than:)](foundation/decimal/isless(than:).md)
- [isLessThanOrEqualTo(_:)](foundation/decimal/islessthanorequalto(_:).md)
- [isTotallyOrdered(belowOrEqualTo:)](foundation/decimal/istotallyordered(beloworequalto:).md)
- [distance(to:)](foundation/decimal/distance(to:).md)
- [NSDecimalCompare(_:_:)](foundation/nsdecimalcompare(_:_:).md)
