From b9cb904a2da783eb85eb1cc28b1f82cd6a7e7932 Mon Sep 17 00:00:00 2001 From: "Lasse R.H. Nielsen" Date: Wed, 12 Sep 2018 12:47:15 +0000 Subject: [PATCH] Fix typo in int-to-double.md Fixes #34449. Bug: http://dartbug.com/34449 Change-Id: Ib2103e4340f7cc2267e71690ce0f7f60a7b453e4 Reviewed-on: https://dart-review.googlesource.com/74621 Reviewed-by: Erik Ernst Commit-Queue: Lasse R.H. Nielsen --- docs/language/informal/int-to-double.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/language/informal/int-to-double.md b/docs/language/informal/int-to-double.md index d9cd3400247..c873a476dcf 100644 --- a/docs/language/informal/int-to-double.md +++ b/docs/language/informal/int-to-double.md @@ -2,7 +2,7 @@ **Author**: eernst@. -**Version**: 0.4 (2018-08-14). +**Version**: 0.5 (2018-09-12). **Status**: Background material, in language specification as of [d14b256](https://github.com/dart-lang/sdk/commit/d14b256e351464db352f361f1206e1415db65d9c). @@ -91,12 +91,12 @@ make the represented number a whole number, which means that we will need to add a specific, finite number of zeros.* *Consequently, -`double d = 18446744073709551614;` +`double d = 18446744073709551616;` has no error and it will initialize `d` to have the double value represented as 0x43F0000000000000. But -`int i = 18446744073709551614;` -is a compile-time error because 18446744073709551614 is too large to be -represented as a 64 bit 2's complement number, and +`int i = 18446744073709551616;` +is a compile-time error because 18446744073709551616 is too large to be +represented as a 64-bit 2's complement number, and `double d = 18446744073709551615;` is a compile-time error because it cannot be represented exactly using the IEEE 754 double-precision format.* @@ -171,6 +171,7 @@ expressed using a double valued integer literal. ## Updates +* Version 0.5 (2018-09-12), Fix typo * Version 0.4 (2018-08-14), adjusted rules to allow more expected types, such as `FutureOr`, for double valued integer literals.