From d673df2695413ecf21cdcdca0f3e30f745966b99 Mon Sep 17 00:00:00 2001 From: builder_247 <14019974+builder-247@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:24:57 +0300 Subject: [PATCH] Change `kda` to have two decimal places --- util/compute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/compute.js b/util/compute.js index c80a82c13..f0778b63c 100644 --- a/util/compute.js +++ b/util/compute.js @@ -71,7 +71,7 @@ function computeMatchData(pm) { pm.deaths !== undefined && pm.assists !== undefined ) { - pm.kda = Math.floor((pm.kills + pm.assists) / (pm.deaths + 1)); + pm.kda = Number(((pm.kills + pm.assists) / (pm.deaths + 1)).toFixed(2)); } if (pm.leaver_status !== undefined) { pm.abandons = Number(pm.leaver_status >= 2);