mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:07:57 +00:00
Clean up num#toStringAsPrecision docs
Closes #32895 https://github.com/dart-lang/sdk/pull/32895 GitOrigin-RevId: a628456dcaebb200a2f1e3022169197a6b7d1248 Change-Id: I8bc0edb17d6aa713717954a5e592e64805246574 Reviewed-on: https://dart-review.googlesource.com/51280 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
This commit is contained in:
parent
1eb1885c62
commit
88127f10e4
|
@ -396,7 +396,7 @@ abstract class num implements Comparable<num> {
|
|||
* Examples:
|
||||
*
|
||||
* 1.toStringAsPrecision(2); // 1.0
|
||||
* 1e15.toStringAsPrecision(3); // 1.00+15
|
||||
* 1e15.toStringAsPrecision(3); // 1.00e+15
|
||||
* 1234567.toStringAsPrecision(3); // 1.23e+6
|
||||
* 1234567.toStringAsPrecision(9); // 1234567.00
|
||||
* 12345678901234567890.toStringAsPrecision(20); // 12345678901234567168
|
||||
|
|
Loading…
Reference in a new issue