---
title: "notation(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/integerformatstyle/notation(_:)"
---

# notation(_:)

Modifies the format style to use the specified notation.

## Declaration

```swift
func notation(_ notation: IntegerFormatStyle<Value>.Configuration.Notation) -> IntegerFormatStyle<Value>
```

## Parameters

- `notation`: The notation to apply to the format style.

## Return Value

Return Value An integer format style modified to use the specified notation.

## Discussion

Discussion The following example creates a default IntegerFormatStyle for the en_US locale, and a second style that uses scientific notation style. It then applies each style to an array of integers. let defaultStyle = IntegerFormatStyle<Int>(locale: Locale(identifier: "en_US")) let scientificStyle = defaultStyle.notation(.scientific) let nums = [100, 1000, 10000, 100000, 1000000] let defaultNums = nums.map { defaultStyle.format($0) } // ["100", "1,000", "10,000", "100,000", "1,000,000"] let scientificNums = nums.map { scientificStyle.format($0) } // ["1E2", "1E3", "1E4", "1E5", "1E6"]

## See Also

### Customizing style behavior

- [decimalSeparator(strategy:)](foundation/integerformatstyle/decimalseparator(strategy:).md)
- [grouping(_:)](foundation/integerformatstyle/grouping(_:).md)
- [precision(_:)](foundation/integerformatstyle/precision(_:).md)
- [rounded(rule:increment:)](foundation/integerformatstyle/rounded(rule:increment:).md)
- [scale(_:)](foundation/integerformatstyle/scale(_:).md)
- [sign(strategy:)](foundation/integerformatstyle/sign(strategy:).md)
- [IntegerFormatStyle.Configuration](foundation/integerformatstyle/configuration.md)
- [NumberFormatStyleConfiguration](foundation/numberformatstyleconfiguration.md)
