From aafd66da628e0cd5cc8e6828db440b0c7e0b9b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Mon, 10 Apr 2017 10:05:25 +0200 Subject: [PATCH] Last spacing in template string expressions. --- .internal/createRound.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.internal/createRound.js b/.internal/createRound.js index 043b6a727..8729aa958 100644 --- a/.internal/createRound.js +++ b/.internal/createRound.js @@ -13,7 +13,7 @@ function createRound(methodName) { // Shift with exponential notation to avoid floating-point issues. // See [MDN](https://mdn.io/round#Examples) for more details. let pair = `${number}e`.split('e') - const value = func(`${pair[0]}e${ +pair[1] + precision }`) + const value = func(`${pair[0]}e${+pair[1] + precision}`) pair = `${value}e`.split('e') return +`${pair[0]}e${+pair[1] - precision}`