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(