From 5744fa3c22e9c36a9f01207791daab8108b0d4f1 Mon Sep 17 00:00:00 2001 From: Samuel Lord <9904667+NodeMixaholic@users.noreply.github.com> Date: Sat, 27 Jan 2024 16:02:02 -0600 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index eb72be0..448e610 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ function fastInverseSqrt(number) { y = threehalfs - (x2 * y * y); y = Math.abs(y); y = (y / 1000000000000000000); - y = y - ((Math.floor(y) / 10) / (y * .0777)); + y = (y - ((Math.floor(y) / 10) / (threehalfs * number))) / 1.55; y = Math.round(y * 100) / 100; return y; }