---
title: "string(fromByteCount:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/bytecountformatter/string(frombytecount:)"
---

# string(fromByteCount:)

Converts a byte count into a string without creating an NSNumber object.

## Declaration

```swift
func string(fromByteCount byteCount: Int64) -> String
```

## Parameters

- `byteCount`: The byte count.

## Return Value

Return Value A string containing the formatted byteCount value.

## See Also

### Creating Strings from Byte Count

- [string(fromByteCount:countStyle:)](foundation/bytecountformatter/string(frombytecount:countstyle:).md)
