-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_lfmod.c
23 lines (20 loc) · 1.04 KB
/
ft_lfmod.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lfmod.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: npimenof <npimenof@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/12/19 16:16:50 by npimenof #+# #+# */
/* Updated: 2019/12/19 16:17:01 by npimenof ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
long double ft_lfmod(long double x, long double y)
{
long double result;
unsigned long long i;
i = x / y;
result = x - (i * y);
return (result);
}