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

Side by Side Diff: samples/third_party/dromaeo/web/common/Math2.dart

Issue 199003005: Package-ify Dromaeo and browser controller functionality (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 part of common; 5 part of common;
6 6
7 // Various math-related utility functions. 7 // Various math-related utility functions.
8 8
9 class Math2 { 9 class Math2 {
10 /// Computes the geometric mean of a set of numbers. 10 /// Computes the geometric mean of a set of numbers.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 if (precision > 0) { 42 if (precision > 0) {
43 end++; 43 end++;
44 } 44 }
45 if (end > dStr.length) { 45 if (end > dStr.length) {
46 end = dStr.length; 46 end = dStr.length;
47 } 47 }
48 48
49 return dStr.substring(0, end); 49 return dStr.substring(0, end);
50 } 50 }
51 } 51 }
OLDNEW
« no previous file with comments | « samples/third_party/dromaeo/web/common/Interval.dart ('k') | samples/third_party/dromaeo/web/common/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698