FENIX_libc/math/fabs.c
2020-12-01 17:40:03 -06:00

10 lines
105 B
C

#include <math.h>
double fabs(double x) {
if(x < 0) {
return -x;
}
else {
return x;
}
}