Swift快速入门

Swift学习笔记-数字

2018-10-16  本文已影响2人  土豆吞噬者

Int/Uint

其他整数类型

使用max,min获取整数类型最大值与最小值

print("The maximum Int Value is \(Int.max)")
print("The maximum Int Value is \(Int.min)")
print("The maximum UInt Value is \(UInt.max)")
print("The maximum UInt Value is \(UInt.min)")

浮点数:Double,Float

与C/C++的不同之处

上一篇 下一篇

猜你喜欢

热点阅读