Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / output / Ext.Number.js
1 Ext.data.JsonP.Ext_Number({
2   "tagname": "class",
3   "name": "Ext.Number",
4   "doc": "<p>A collection of useful static methods to deal with numbers</p>\n",
5   "extends": null,
6   "mixins": [
7
8   ],
9   "alternateClassNames": [
10
11   ],
12   "xtype": null,
13   "author": null,
14   "docauthor": null,
15   "singleton": true,
16   "private": false,
17   "cfg": [
18
19   ],
20   "method": [
21     {
22       "tagname": "method",
23       "name": "constrain",
24       "member": "Ext.Number",
25       "doc": "<p>Checks whether or not the current number is within a desired range.  If the number is already within the\nrange it is returned, otherwise the min or max value is returned depending on which side of the range is\nexceeded. Note that this method returns the constrained value but does not change the current number.</p>\n",
26       "params": [
27         {
28           "type": "Number",
29           "name": "number",
30           "doc": "<p>The number to check</p>\n",
31           "optional": false
32         },
33         {
34           "type": "Number",
35           "name": "min",
36           "doc": "<p>The minimum number in the range</p>\n",
37           "optional": false
38         },
39         {
40           "type": "Number",
41           "name": "max",
42           "doc": "<p>The maximum number in the range</p>\n",
43           "optional": false
44         }
45       ],
46       "return": {
47         "type": "Number",
48         "doc": "<p>The constrained value if outside the range, otherwise the current value</p>\n"
49       },
50       "private": false,
51       "static": false,
52       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/lang/Number.js",
53       "linenr": 13,
54       "html_filename": "Number3.html",
55       "href": "Number3.html#Ext-Number-method-constrain",
56       "shortDoc": "Checks whether or not the current number is within a desired range.  If the number is already within the\nrange it is ..."
57     },
58     {
59       "tagname": "method",
60       "name": "from",
61       "member": "Ext.Number",
62       "doc": "<p>Validate that a value is numeric and convert it to a number if necessary. Returns the specified default value if\nit is not.</p>\n\n<p>Ext.Number.from('1.23', 1); // returns 1.23\nExt.Number.from('abc', 1); // returns 1</p>\n",
63       "params": [
64         {
65           "type": "Mixed",
66           "name": "value",
67           "doc": "\n",
68           "optional": false
69         },
70         {
71           "type": "Number",
72           "name": "defaultValue",
73           "doc": "<p>The value to return if the original value is non-numeric</p>\n",
74           "optional": false
75         }
76       ],
77       "return": {
78         "type": "Number",
79         "doc": "<p>value, if numeric, defaultValue otherwise</p>\n"
80       },
81       "private": false,
82       "static": false,
83       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/lang/Number.js",
84       "linenr": 49,
85       "html_filename": "Number3.html",
86       "href": "Number3.html#Ext-Number-method-from",
87       "shortDoc": "Validate that a value is numeric and convert it to a number if necessary. Returns the specified default value if\nit i..."
88     },
89     {
90       "tagname": "method",
91       "name": "toFixed",
92       "member": "Ext.Number",
93       "doc": "<p>Formats a number using fixed-point notation</p>\n",
94       "params": [
95         {
96           "type": "Number",
97           "name": "value",
98           "doc": "<p>The number to format</p>\n",
99           "optional": false
100         },
101         {
102           "type": "Number",
103           "name": "precision",
104           "doc": "<p>The number of digits to show after the decimal point</p>\n",
105           "optional": false
106         }
107       ],
108       "return": {
109         "type": "void",
110         "doc": "\n"
111       },
112       "private": false,
113       "static": false,
114       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/lang/Number.js",
115       "linenr": 34,
116       "html_filename": "Number3.html",
117       "href": "Number3.html#Ext-Number-method-toFixed",
118       "shortDoc": "<p>Formats a number using fixed-point notation</p>\n"
119     }
120   ],
121   "property": [
122
123   ],
124   "event": [
125
126   ],
127   "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/lang/Number.js",
128   "linenr": 1,
129   "html_filename": "Number3.html",
130   "href": "Number3.html#Ext-Number",
131   "cssVar": [
132
133   ],
134   "cssMixin": [
135
136   ],
137   "component": false,
138   "superclasses": [
139
140   ],
141   "subclasses": [
142
143   ],
144   "mixedInto": [
145
146   ],
147   "allMixins": [
148
149   ]
150 });