You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an option named abbreviations which can be used in config abbr of thousand | million | ....
Debug
Within the formatting.js#formatNumber() function,the providedFormat.abbreviations was ignored to computed the average abbreviation. ONLY globalState.currentAbbreviations was used.
Solution
// maybe this will work...
abbreviations: Object.assign({}, state.currentAbbreviations(), providedFormat.abbreviations),
The text was updated successfully, but these errors were encountered:
Problem
Run this code at console of numbro website:
Expect Behavior
The outputs should be
1M
Description
According to the description of the code:
numbro/src/validating.js
Line 154 in cac2055
There is an option named
abbreviations
which can be used in config abbr ofthousand | million | ...
.Debug
Within the
formatting.js#formatNumber()
function,theprovidedFormat.abbreviations
was ignored to computed the average abbreviation. ONLYglobalState.currentAbbreviations
was used.Solution
The text was updated successfully, but these errors were encountered: