forked from PoliEcho-holding-org/kern
11 lines
126 B
C
11 lines
126 B
C
#include <math.h>
|
|
|
|
int abs(int n) {
|
|
return (n < 0) ? -n : n;
|
|
}
|
|
|
|
double fabs(double x) {
|
|
return (x < 0.0) ? -x : x;
|
|
}
|
|
|