import Foundation
var x: Float = 9382.4
var y: Int = Int(round(x)) // Correct conversion
print(y)
x = 9382.5
y = Int(round(x)) // Explicit conversion to Int
print(y)
x = 9382.6
y = Int(round(x)) // Explicit conversion to Int
print(y)
/*
run:
9382
9383
9383
*/