<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Float/description",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Sf11descriptionSSvp"
  },
  "title" : "description"
}
-->

# description

A textual representation of the value.

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

## Discussion

For any finite value, this property provides a string that can be
converted back to an instance of `Float` without rounding errors.  That
is, if `x` is an instance of `Float`, then `Float(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”.

---

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)