Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: lib/math/base.dart

Issue 10880068: - Change "static final" to "static const" in the lib/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/json/json.dart ('k') | lib/uri/uri.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // A part of the dart:math library. 5 // A part of the dart:math library.
6 6
7 /** 7 /**
8 * Base of the natural logarithms. 8 * Base of the natural logarithms.
9 * 9 *
10 * Typically written as "e". 10 * Typically written as "e".
11 */ 11 */
12 final double E = 2.718281828459045; 12 const double E = 2.718281828459045;
13 13
14 /** 14 /**
15 * Natural logarithm of 10. 15 * Natural logarithm of 10.
16 */ 16 */
17 final double LN10 = 2.302585092994046; 17 const double LN10 = 2.302585092994046;
18 18
19 /** 19 /**
20 * Natural logarithm of 2. 20 * Natural logarithm of 2.
21 */ 21 */
22 final double LN2 = 0.6931471805599453; 22 const double LN2 = 0.6931471805599453;
23 23
24 /** 24 /**
25 * Base-2 logarithm of [E]. 25 * Base-2 logarithm of [E].
26 */ 26 */
27 final double LOG2E = 1.4426950408889634; 27 const double LOG2E = 1.4426950408889634;
28 28
29 /** 29 /**
30 * Base-10 logarithm of [E]. 30 * Base-10 logarithm of [E].
31 */ 31 */
32 final double LOG10E = 0.4342944819032518; 32 const double LOG10E = 0.4342944819032518;
33 33
34 /** 34 /**
35 * The PI constant. 35 * The PI constant.
36 */ 36 */
37 final double PI = 3.1415926535897932; 37 const double PI = 3.1415926535897932;
38 38
39 /** 39 /**
40 * Square root of 1/2. 40 * Square root of 1/2.
41 */ 41 */
42 final double SQRT1_2 = 0.7071067811865476; 42 const double SQRT1_2 = 0.7071067811865476;
43 43
44 /** 44 /**
45 * Square root of 2. 45 * Square root of 2.
46 */ 46 */
47 final double SQRT2 = 1.4142135623730951; 47 const double SQRT2 = 1.4142135623730951;
48 48
49 /** 49 /**
50 * Parses a [String] representation of an [int], and returns an [int]. 50 * Parses a [String] representation of an [int], and returns an [int].
51 * 51 *
52 * Throws a [FormatException] if [str] cannot be parsed as an [int]. 52 * Throws a [FormatException] if [str] cannot be parsed as an [int].
53 */ 53 */
54 external int parseInt(String str); 54 external int parseInt(String str);
55 55
56 /** 56 /**
57 * Parses a [String] representation of a [double], and returns a [double]. 57 * Parses a [String] representation of a [double], and returns a [double].
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 * Returns NaN if [x] is NaN. 226 * Returns NaN if [x] is NaN.
227 */ 227 */
228 external double exp(num x); 228 external double exp(num x);
229 229
230 /** 230 /**
231 * Converts [x] to a double and returns the natural logarithm of the value. 231 * Converts [x] to a double and returns the natural logarithm of the value.
232 * Returns negative infinity if [x] is equal to zero. 232 * Returns negative infinity if [x] is equal to zero.
233 * Returns NaN if [x] is NaN or less than zero. 233 * Returns NaN if [x] is NaN or less than zero.
234 */ 234 */
235 external double log(num x); 235 external double log(num x);
OLDNEW
« no previous file with comments | « lib/json/json.dart ('k') | lib/uri/uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698