<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/ByteCountFormatter/CountStyle-swift.enum/decimal",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSByteCountFormatterCountStyle@NSByteCountFormatterCountStyleDecimal"
  },
  "title" : "ByteCountFormatter.CountStyle.decimal"
}
-->

# ByteCountFormatter.CountStyle.decimal

Causes 1000 bytes to be shown as 1 KB. It is better to use [`ByteCountFormatter.CountStyle.file`](/documentation/Foundation/ByteCountFormatter/CountStyle-swift.enum/file) or [`ByteCountFormatter.CountStyle.memory`](/documentation/Foundation/ByteCountFormatter/CountStyle-swift.enum/memory) in most cases.

```
case decimal
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)