diff --git a/projects/ng-units/src/lib/formatters.ts b/projects/ng-units/src/lib/formatters.ts index 33ffb41..3c02908 100644 --- a/projects/ng-units/src/lib/formatters.ts +++ b/projects/ng-units/src/lib/formatters.ts @@ -5,7 +5,7 @@ export const QuantityFormatters: { [name: string]: QuantityFormatter } = { 'default': function (value: number): string { const abs = Math.abs(value); let text: string; - if (abs && (abs >= 1e5 || abs <= 1e-2)) { + if (abs && (abs >= 1e10 || abs <= 1e-2)) { text = removeZeroDigits(value.toExponential(3)); } else {