From ed90959687a1899693fa540af7056ed2d6e9770c Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 11 Aug 2021 20:49:02 +0200 Subject: [PATCH] Fix: caMean is rounded --- src/lib/months.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/months.js b/src/lib/months.js index e565c46..44e7e88 100644 --- a/src/lib/months.js +++ b/src/lib/months.js @@ -22,7 +22,7 @@ export function caTotal (months) { } export function caMean (months) { - return caTotal(months) / count(months) + return Math.floor(caTotal(months) / count(months)) }