UNPKG

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