aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter0_basics/lesson05_floats/code.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/chapter0_basics/lesson05_floats/code.gleam')
-rw-r--r--src/content/chapter0_basics/lesson05_floats/code.gleam3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/content/chapter0_basics/lesson05_floats/code.gleam b/src/content/chapter0_basics/lesson05_floats/code.gleam
index 8c4e89a..4241ab4 100644
--- a/src/content/chapter0_basics/lesson05_floats/code.gleam
+++ b/src/content/chapter0_basics/lesson05_floats/code.gleam
@@ -18,6 +18,9 @@ pub fn main() {
io.debug(1.1 == 1.1)
io.debug(2.1 == 1.2)
+ // Division by zero is not an error
+ io.debug(3.14 /. 0.0)
+
// Standard library float functions
io.debug(float.max(2.0, 9.5))
io.debug(float.ceiling(5.4))