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

Side by Side Diff: sdk/lib/core/num.dart

Issue 23522037: one-liners for the remaining top-50 dart:core classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: incorporate memfeedback Created 7 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
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 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * All numbers in dart are instances of [num]. 8 * An integer or floating-point number.
9 * 9 *
10 * It is a compile-time error for any type other than the types int and double 10 * It is a compile-time error for any type other than [int] or [double]
11 * to attempt to extend or implement num. 11 * to attempt to extend or implement num.
12 */ 12 */
13 abstract class num implements Comparable<num> { 13 abstract class num implements Comparable<num> {
14 /** Addition operator. */ 14 /** Addition operator. */
15 num operator +(num other); 15 num operator +(num other);
16 16
17 /** Subtraction operator. */ 17 /** Subtraction operator. */
18 num operator -(num other); 18 num operator -(num other);
19 19
20 /** Multiplication operator. */ 20 /** Multiplication operator. */
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 * 268 *
269 * Note: the conversion may round the output if the returned string 269 * Note: the conversion may round the output if the returned string
270 * is accurate enough to uniquely identify the input-number. 270 * is accurate enough to uniquely identify the input-number.
271 * For example the most precise representation of the [double] `9e59` equals 271 * For example the most precise representation of the [double] `9e59` equals
272 * `"899999999999999918767229449717619953810131273674690656206848"`, but 272 * `"899999999999999918767229449717619953810131273674690656206848"`, but
273 * this method returns the shorter (but still uniquely identifying) `"9e59"`. 273 * this method returns the shorter (but still uniquely identifying) `"9e59"`.
274 * 274 *
275 */ 275 */
276 String toString(); 276 String toString();
277 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698