From eccda096c2e8e30f76e4c4a21421243159cd9026 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sat, 7 Sep 2024 09:22:29 -0700 Subject: README includes more design decisions for type names. Add Or,Xor for completeness. --- chapter12/README.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chapter12') 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 -- cgit v1.2.3