From e947a85dfd9df4d81712ed66538df36ca667659d Mon Sep 17 00:00:00 2001 From: devonwt Date: Wed, 13 Jun 2018 17:53:06 -0400 Subject: [PATCH 1/2] fix 16-bit float mistake --- notebooks/01_basic_training.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/01_basic_training.ipynb b/notebooks/01_basic_training.ipynb index 8e522dc..9624bdc 100644 --- a/notebooks/01_basic_training.ipynb +++ b/notebooks/01_basic_training.ipynb @@ -327,7 +327,7 @@ } }, "source": [ - "Careful: floats are limited by their 16-bit representation (same as in other languages)" + "Careful: floats are limited by their 64-bit representation (same as in other languages). A 64-bit float gives roughly 16 significant decimal digits." ] }, { @@ -3449,4 +3449,4 @@ "metadata": {} } ] -} \ No newline at end of file +} From 526af5a6546b8462ca9f2d92079b135f1e6efc1f Mon Sep 17 00:00:00 2001 From: devonwt Date: Wed, 13 Jun 2018 18:02:26 -0400 Subject: [PATCH 2/2] add clarification about printed floats --- notebooks/01_basic_training.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/01_basic_training.ipynb b/notebooks/01_basic_training.ipynb index 9624bdc..72fd985 100644 --- a/notebooks/01_basic_training.ipynb +++ b/notebooks/01_basic_training.ipynb @@ -327,7 +327,7 @@ } }, "source": [ - "Careful: floats are limited by their 64-bit representation (same as in other languages). A 64-bit float gives roughly 16 significant decimal digits." + "Careful: floats are limited by their 64-bit representation (same as in other languages). A 64-bit float gives roughly 16 significant decimal digits. (However, note that even the number printed below by python is actually a rounded version of the true 64-bit representation.)" ] }, {