adding sign and abs for doubles

This commit is contained in:
hugogogo
2026-05-06 22:54:20 +02:00
parent f93c635234
commit 78f6a2d9ba
6 changed files with 22 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#include "libft.h"
int ft_abs(int n)
int ft_abs(int n)
{
if (n < 0)
n *= -1;