---
title: ByteCountFormatter.CountStyle.binary
framework: foundation
role: symbol
role_heading: Case
path: foundation/bytecountformatter/countstyle-swift.enum/binary
---

# ByteCountFormatter.CountStyle.binary

Causes 1024 bytes to be shown as 1 KB. It is better to use ByteCountFormatter.CountStyle.file or ByteCountFormatter.CountStyle.memory in most cases.

## Declaration

```swift
case binary
```

## See Also

### Constants

- [ByteCountFormatter.CountStyle.file](foundation/bytecountformatter/countstyle-swift.enum/file.md)
- [ByteCountFormatter.CountStyle.memory](foundation/bytecountformatter/countstyle-swift.enum/memory.md)
- [ByteCountFormatter.CountStyle.decimal](foundation/bytecountformatter/countstyle-swift.enum/decimal.md)
