From 90d32dca61cb596198b6b617c338f7824ce19e95 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 17 Sep 2025 16:45:41 +0200 Subject: [PATCH] style(math/sqrt): changing the parameter name to be clearer --- math/ft_sqrt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/math/ft_sqrt.c b/math/ft_sqrt.c index 2570115..477c124 100644 --- a/math/ft_sqrt.c +++ b/math/ft_sqrt.c @@ -6,21 +6,21 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/09/17 16:30:27 by rparodi #+# #+# */ -/* Updated: 2025/09/17 16:37:00 by rparodi ### ########.fr */ +/* Updated: 2025/09/17 16:44:28 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ #include #include -uint64_t ft_sqrt(uint64_t nb) +uint64_t ft_sqrt(uint64_t number) { uint64_t i; i = 1; - while ((i * i) <= nb && i <= 4294967296) + while ((i * i) <= number && i <= 4294967296) { - if ((i * i) == nb) + if ((i * i) == number) return (i); i++; }