[Solved] How to convert Int of Array values to Double using Swift [closed]
let data : [Int] = [1,2,4,5,6,7,8,4,23,54,100] let convertedData = data.map { Double($0)/100} Output: [0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.04, 0.23, 0.54, 1.0] 5 solved How to convert Int of Array values to Double using Swift [closed]