Lets take a look at this simple example
let formatter = NumberFormatter() formatter.number(from: "0.945") // result: 0.945 formatter.number(from: &q