changed sign_f to also return zero

This commit is contained in:
hugogogo
2026-05-08 00:59:29 +02:00
parent 3cf0b6ecb9
commit 8edf428fed
3 changed files with 5 additions and 3 deletions

10
srcs/ft_fsign.c Normal file
View File

@@ -0,0 +1,10 @@
#include "libft.h"
int ft_fsign(double i)
{
if (i < 0)
return (-1);
else if (i == 0)
return (0);
return (1);
}