Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayanEmzed committed Feb 4, 2022
1 parent cac2055 commit 7363247
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/formatting.js
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,10 @@ function formatOrDefault(providedFormat, defaultFormat) {
return providedFormat;
}

function precise(num, significant) {
return num.toPrecision(significant);
}

module.exports = (numbro) => ({
format: (...args) => format(...args, numbro),
getByteUnit: (...args) => getByteUnit(...args, numbro),
Expand Down

0 comments on commit 7363247

Please sign in to comment.