adding sign and abs for doubles
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "libft.h"
|
||||
|
||||
int ft_abs(int n)
|
||||
int ft_abs(int n)
|
||||
{
|
||||
if (n < 0)
|
||||
n *= -1;
|
||||
|
||||
Reference in New Issue
Block a user