This website requires JavaScript.
Explore
Help
Sign In
bumbread
/
ciabatta
mirror of
https://github.com/flysand7/ciabatta.git
Watch
1
Fork
You've already forked ciabatta
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
c95b61dc1d
ciabatta
/
code
/
math
/
abs.c
17 lines
184 B
C
Raw
Blame
History
#
include
<math.h>
double
fabs
(
double
x
)
{
if
(
x
>
=
0
)
{
return
x
;
}
return
-
x
;
}
float
fabsf
(
float
x
)
{
if
(
x
>
=
0
)
{
return
x
;
}
return
-
x
;
}
Reference in New Issue
View Git Blame
Copy Permalink