The Double.description
property in Swift returns the textual representation of a double value.
Double.description
This property returns a string value.
// Create some double valueslet d1 = 2.34let d2 = 5.565let d3 = 0.1111// Get the textual representationlet t1 = d1.descriptionlet t2 = d2.descriptionlet t3 = d3.description// Print the textprint(t1)print(t2)print(t3)// Print the object types of the textprint(type(of: t1))print(type(of: t2))print(type(of: t3))
description
.