diff options
Diffstat (limited to 'chapter12/README.md')
| -rw-r--r-- | chapter12/README.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chapter12/README.md b/chapter12/README.md index 4fb18df6..9d5967b9 100644 --- a/chapter12/README.md +++ b/chapter12/README.md @@ -12,6 +12,10 @@ f = f+x; // Auto-widen x to 2.0, result is 2.5 f = f+true; // Since bools are just synonyms for integers 0,1 they auto-widen also ``` +There is no corresponding way right now to round a `flt` back to an `int`: +```java +int x = 3.14; // error +``` Here is Newton's method to a square root: ```java |
