norm: splitted functions in main into appropriate file
Moved lstdelenvelem & env2lst to ms_env.c Normed out files
This commit is contained in:
20
libft/srcs/ft_round.c
Normal file
20
libft/srcs/ft_round.c
Normal file
@@ -0,0 +1,20 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_round.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/10/24 13:37:41 by tmaze #+# #+# */
|
||||
/* Updated: 2018/10/24 13:37:52 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
int ft_round(float x, float ind)
|
||||
{
|
||||
if ((x - (int)x) > ind)
|
||||
return ((int)x + 1);
|
||||
return ((int)x);
|
||||
}
|
Reference in New Issue
Block a user