UNPKG

2.78 kBMarkdownView Raw
1[Numeral.js](http://numeraljs.com/)
2=======================================================
3
4A javascript library for formatting and manipulating numbers.
5
6[Website and documentation](http://numeraljs.com/)
7
8
9Changelog
10=========
11
12### 1.3.3
13
14AMD define() compatibility.
15
16### 1.3.2
17
18Bug fix: Formatting some numbers results in the wrong value. Issue #21
19
20### 1.3.1
21
22Bug fix: Minor fix to unformatting parser
23
24### 1.3.0
25
26Add support for spaces before/after $, a, o, b in a format string
27
28Bug fix: Fix unformat for languages that use '.' in ordinals
29
30Bug fix: Fix round up floating numbers with no precision correctly.
31
32Bug fix: Fix currency signs at the end in unformat
33
34### 1.2.6
35
36Add support for optional decimal places
37
38### 1.2.5
39
40Add support for appending currency symbol
41
42### 1.2.4
43
44Add support for humanized filesizes
45
46### 1.2.3
47
48Bug Fix: Fix unformatting for languages that use '.' as thousands delimiter
49
50### 1.2.2
51
52Changed language definition property 'money' to 'currency'
53
54### 1.2.1
55
56Bug fix: Fix unformatting non-negative abbreviations
57
58### 1.2.0
59
60Add language support
61
62Update testing for to include languages
63
64### 1.1.0
65
66Add Tests
67
68Bug fix: Fix difference returning negative values
69
70### 1.0.4
71
72Bug fix: Non negative numbers were displaying as negative when using parentheses
73
74### 1.0.3
75
76Add ordinal formatting using 'o' in the format
77
78### 1.0.2
79
80Add clone functionality
81
82### 1.0.1
83
84Added abbreviations for thousands and millions using 'a' in the format
85
86### 1.0.0
87
88Initial release
89
90
91Acknowlegements
92===============
93
94Numeral.js, while less complex, was inspired by and heavily borrowed from [Moment.js](http://momentjs.com)
95
96
97License
98=======
99
100Numeral.js is freely distributable under the terms of the MIT license.
101
102Copyright (c) 2012 Adam Draper
103
104Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
105files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,
106copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
107
108The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
109
110THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\No newline at end of file