1. Seeking Redundancyextern DoubleFmodDouble,Double); Fmod (10.2,3) =1.22. Roundingextern DoubleRoundDouble); Round (10.5) = One3. Square (most commonly used)extern DoublePowDouble,Double);p ow (3,4) =Bayi4. Prescribe (common)extern DoublesqrtDouble); sqrt ( -) =45. Natural number E ^Nextern DoubleExpDouble); exp (3) = POW (2.718281828,3) =20.0855376. Logarithmicextern DoubleLogDouble);//e for the bottomextern DoubleLOG10 (Double);//10 for BottomLog (20.085537) =3log10 ( -) =25. Absolute valueextern DoubleFabs (Double); Fabs (-Ten) =Ten6. roundingextern DoubleCeil (Double);//Upwardextern DoubleFloorDouble);//downwardCeil (10.2) = OneFloor (10.2) =Ten7. Seeking hypotenuseextern DoubleHypot (Double,Double);//Right triangle two straight sidesHypot (3,4) =58. Calculate x *2^Nextern DoubleLdexp (Double,int); Ldexp (3,4) =3*2^4= -
Encountered in the program logic content, know the common match function, can help us improve work efficiency!
The match function for iOS