description
A textual representation of the value.
- iOS
- 14.0+
- macOS
- 11.0+
- tvOS
- 14.0+
- watchOS
- 7.0+
var description: String { get }
For any finite value, this property provides a string that can be converted back to an instance of Float16
without rounding errors. That is, if x
is an instance of Float16
, then Float16(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”.