diff options
| author | Cliff Click <cliffc@acm.org> | 2024-09-07 09:22:29 -0700 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2024-09-07 10:54:48 -0700 |
| commit | eccda096c2e8e30f76e4c4a21421243159cd9026 (patch) | |
| tree | d94f7ba3f46cd2c877e000d260406d084d27fb6f /chapter12 | |
| parent | 22a129078b27d5244fac5bddd44a1b50cbb79839 (diff) | |
| download | Simple-eccda096c2e8e30f76e4c4a21421243159cd9026.tar.gz Simple-eccda096c2e8e30f76e4c4a21421243159cd9026.zip | |
README includes more design decisions for type names.
Add Or,Xor for completeness.
Diffstat (limited to 'chapter12')
| -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 |
