【文件属性】:
文件名称:Swift_Extensions:整数,浮点数,双精度,字符串和NSDate的Swift扩展
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-05 02:50:00
Swift
Swift_Extensions
与最新的Swift 2.0库兼容的Integer,float,Double,String,NSDate扩展
在我学习和编写iOS Apps的过程中,我在*中编写或找到了解决方案。
双/浮点数:
abs, sqrt, floor, ceil, round,
floorToInt, ceilToInt, roundToInt,
ceilToString, roundToString, toPercentage, toDecimal,
isPositive, isNegative, isZero, sign, fullSign
整数:
toString, toDouble, toFloat,
isEven, isOdd, abs, gcd, lcm, factorial,
isZero, isPositive, isNe
【文件预览】:
Swift_Extensions-master
----NSDateExtension.swift(16KB)
----DoubleExtension.swift(2KB)
----IntegerExtension.swift(1KB)
----StringExtension.swift(3KB)
----FloatExtension.swift(2KB)
----README.md(1KB)