nmbr 0.1.0

nmbr 0.1.0

Maintained by Sam Dean.

nmbr 0.1.0

  • By
  • deanWombourne


CI Status Version License Platform

This pod is a (hopefully) very small library to short format numbers like this: http://cldr.unicode.org/translation/numbers-currency/number-patterns#TOC-Compact-decimal-formatting-Short-Numbers.

It's main purpose is for formatting pricing information (though it will format any number).

It should

  • deal with localisation (i.e. some locales group by 4 digits, not 3)
  • deal with pricing correctly (i.e. put the right currency symbol in the right place)
  • deal with long/short versions i.e. 1M vs. 1 million.

Long term, this should just be handled in Foundation - there shouldn't really be a need for this pod.


To run the example project, clone the repo and look in Example/.



nmbr is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'nmbr'


deanWombourne, [email protected]


nmbr is available under the MIT license. See the LICENSE file for more info.