Cmath
Functions
-
ceil() - 소수점 이하 모두 올림.
-
roundf() - 소수점 이하 반올림
-
floor() - 소수점 이하 모두 버림
-
modf() - 정수부와 소수부를 획득.
logarithm
-
log10 - https://github.com/lattera/glibc/blob/master/sysdeps/ieee754/dbl-64/e_log10.c
- 밑이10인 로그 계산. (상용로그 (Common logarithm))
abs
절대값을 계산하는 함수이다. abs()와 labs()는 정수에 대한 절대값 반환이며, fabs()는 실수에 대한 절대값 반환이다.
| function | parameter |
| abs | int |
| labs | long |
| llabs | long long |
| fabsf | float |
| fabs | double |
| fabsl | long double |
atan2
In a variety of computer languages, the two-argument function atan2 is a variation of the arctangent function.
- Compute arc tangent with two parameters.
- Returns the principal value of the arc tangent of y/x, expressed in radians.
- To compute the value, the function uses the sign of both arguments to determine the quadrant.