Bootstrap

Swift取绝对值

    //iOS开发Swift版取绝对值方法
        print(abs(-12));12
        print(abs(13));13
        print(fabs(12.12));12
        print(fabs(-12.12));12
        print(fabsf(2525.151));2525
        print(fabsf(-2525.151));2525

 

转载于:https://my.oschina.net/wayzhu/blog/1556483

;