mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
Updated the invalid Example in num.dart
Closes #35400 Closes https://github.com/dart-lang/sdk/pull/40935 https://github.com/dart-lang/sdk/pull/40935 GitOrigin-RevId: a147cc095cf414431c7c9749a6ea4f53139c02da Change-Id: I3bbe858e4872be067abc710864fa130ac507ffa2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138792 Reviewed-by: Bob Nystrom <rnystrom@google.com>
This commit is contained in:
parent
b22d3d6294
commit
f1369d7896
|
@ -361,8 +361,8 @@ abstract class num implements Comparable<num> {
|
|||
* 1.toStringAsFixed(3); // 1.000
|
||||
* (4321.12345678).toStringAsFixed(3); // 4321.123
|
||||
* (4321.12345678).toStringAsFixed(5); // 4321.12346
|
||||
* 123456789012345678901.toStringAsFixed(3); // 123456789012345683968.000
|
||||
* 1000000000000000000000.toStringAsFixed(3); // 1e+21
|
||||
* 123456789012345.toStringAsFixed(3); // 123456789012345.000
|
||||
* 10000000000000000.toStringAsFixed(4); // 10000000000000000.0000
|
||||
* 5.25.toStringAsFixed(0); // 5
|
||||
*/
|
||||
String toStringAsFixed(int fractionDigits);
|
||||
|
|
|
@ -359,8 +359,8 @@ abstract class num implements Comparable<num> {
|
|||
* 1.toStringAsFixed(3); // 1.000
|
||||
* (4321.12345678).toStringAsFixed(3); // 4321.123
|
||||
* (4321.12345678).toStringAsFixed(5); // 4321.12346
|
||||
* 123456789012345678901.toStringAsFixed(3); // 123456789012345683968.000
|
||||
* 1000000000000000000000.toStringAsFixed(3); // 1e+21
|
||||
* 123456789012345.toStringAsFixed(3); // 123456789012345.000
|
||||
* 10000000000000000.toStringAsFixed(4); // 10000000000000000.0000
|
||||
* 5.25.toStringAsFixed(0); // 5
|
||||
*/
|
||||
String toStringAsFixed(int fractionDigits);
|
||||
|
|
Loading…
Reference in a new issue