iOS的match函數

來源:互聯網
上載者:User

標籤:常用   ios   class   計算   2.7   mat   span   col   自然數   

1.求餘extern double fmod(double,double);fmod(10.2,3) =1.22.四捨五入extern double round(double);round(10.5) =113.平方 (最常用)extern double pow(double,double);pow(3,4)= 814.開方(常用)extern double sqrt(double);sqrt(16) =45.自然數 e ^ nextern double exp(double);exp(3) = pow(2.718281828,3) = 20.0855376.對數extern double log(double);   // e 為底extern double log10(double); // 10 為底log(20.085537) =3log10(100) =25.絕對值extern double fabs(double);fabs(-10) =106.取整extern double ceil(double); // 向上extern double floor(double);// 向下ceil(10.2) =11floor(10.2) =107.求斜邊extern double hypot(double,double);  //直角三角形兩直邊hypot(3,4) =58.計算 x *2 ^ nextern double ldexp(double,int);ldexp(3,4)= 3 *2 ^ 4 = 48

 

遇到程式裡面邏輯性內容,知曉常用match函數,可以幫我們提升工作效率!

iOS的match函數

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.