adding sign and abs for doubles
This commit is contained in:
8
srcs/ft_sign_f.c
Normal file
8
srcs/ft_sign_f.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "libft.h"
|
||||
|
||||
int ft_sign_f(double i)
|
||||
{
|
||||
if (i < 0)
|
||||
return (-1);
|
||||
return (1);
|
||||
}
|
||||
Reference in New Issue
Block a user