UNPKG

3.02 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.4.1
13
14Bug fix: Bytes not formatting correctly
15
16### 1.4.0
17
18Add optional format for all decimals
19
20### 1.3.4
21
22Remove AMD module id. (This is encouraged by require.js to make the module more portable, and keep it from creating a global)
23
24### 1.3.3
25
26AMD define() compatibility.
27
28### 1.3.2
29
30Bug fix: Formatting some numbers results in the wrong value. Issue #21
31
32### 1.3.1
33
34Bug fix: Minor fix to unformatting parser
35
36### 1.3.0
37
38Add support for spaces before/after $, a, o, b in a format string
39
40Bug fix: Fix unformat for languages that use '.' in ordinals
41
42Bug fix: Fix round up floating numbers with no precision correctly.
43
44Bug fix: Fix currency signs at the end in unformat
45
46### 1.2.6
47
48Add support for optional decimal places
49
50### 1.2.5
51
52Add support for appending currency symbol
53
54### 1.2.4
55
56Add support for humanized filesizes
57
58### 1.2.3
59
60Bug Fix: Fix unformatting for languages that use '.' as thousands delimiter
61
62### 1.2.2
63
64Changed language definition property 'money' to 'currency'
65
66### 1.2.1
67
68Bug fix: Fix unformatting non-negative abbreviations
69
70### 1.2.0
71
72Add language support
73
74Update testing for to include languages
75
76### 1.1.0
77
78Add Tests
79
80Bug fix: Fix difference returning negative values
81
82### 1.0.4
83
84Bug fix: Non negative numbers were displaying as negative when using parentheses
85
86### 1.0.3
87
88Add ordinal formatting using 'o' in the format
89
90### 1.0.2
91
92Add clone functionality
93
94### 1.0.1
95
96Added abbreviations for thousands and millions using 'a' in the format
97
98### 1.0.0
99
100Initial release
101
102
103Acknowlegements
104===============
105
106Numeral.js, while less complex, was inspired by and heavily borrowed from [Moment.js](http://momentjs.com)
107
108
109License
110=======
111
112Numeral.js is freely distributable under the terms of the MIT license.
113
114Copyright (c) 2012 Adam Draper
115
116Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
117files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,
118copy, 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:
119
120The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
121
122THE 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