From 2ed04034a4155f518e870d8775db7f2241dfc844 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 1 Jul 2019 15:13:19 +0100 Subject: [PATCH] Accidentally fix issue with values being detected as needing rewrite when they didn't --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index a23a53f..9d4202c 100644 --- a/index.ts +++ b/index.ts @@ -51,7 +51,7 @@ function statusOutput(message: string) { } function isPrecision(value: number, precision: number) { - return parseFloat(value.toFixed(precision)) === value; + return value.toFixed(precision) === value.toString(); } function writeTemplate(