I was playing with the floats and explicit conversion of the floats into desired types. What I'm getting is when you convert a float into string, there is some junk data that comes along. Why is that happening ?
Heres my code :
let a:Float = 5.23
var fName = "john"
var lName = "doe"
var fullName = fName + lName
var mixedString = fullName + String(a)
print(mixedString)
This gives johndoe5.23000001907349
as output. What is going on here with the extra 1907349