---
title: description
framework: swift
role: symbol
role_heading: Instance Property
path: swift/double/description
---

# description

A textual representation of the value.

## Declaration

```swift
var description: String { get }
```

## Discussion

Discussion For any finite value, this property provides a string that can be converted back to an instance of Double without rounding errors.  That is, if x is an instance of Double, then Double(x.description) == x is always true.  For any NaN value, the property’s value is “nan”, and for positive and negative infinity its value is “inf” and “-inf”.

## See Also

### Describing a Double

- [debugDescription](swift/double/debugdescription.md)
- [customMirror](swift/double/custommirror.md)
- [hash(into:)](swift/double/hash(into:).md)
