mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Last spacing in template string expressions.
This commit is contained in:
@@ -13,7 +13,7 @@ function createRound(methodName) {
|
|||||||
// Shift with exponential notation to avoid floating-point issues.
|
// Shift with exponential notation to avoid floating-point issues.
|
||||||
// See [MDN](https://mdn.io/round#Examples) for more details.
|
// See [MDN](https://mdn.io/round#Examples) for more details.
|
||||||
let pair = `${number}e`.split('e')
|
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')
|
pair = `${value}e`.split('e')
|
||||||
return +`${pair[0]}e${+pair[1] - precision}`
|
return +`${pair[0]}e${+pair[1] - precision}`
|
||||||
|
|||||||
Reference in New Issue
Block a user