1

First

let mDouble = 19.9 * 100.0 // 1990.0
let mInt = Int(mDouble) // the result is 1989

but

let mInt = Int(1990.0) // the result is 1990

so, how to get the right result?

Deffi
  • 59
  • 6

0 Answers0