//数据类型转换
let one : UInt8 = 1
let two : UInt16 = 2000
let twoToOne = two + UInt16(one)
//let twoToOne = UInt8(two) + one //不允许
print(twoToOne)
//在swift里不允许把大的转成小的,防止精度丢失
//整型与浮点型转换
let three = 3
let four = 0.1456
let pi = Double(three) + four
let pii = three + Int(four)
print(pi,pii)