Skip to content

Commit c3224f9

Browse files
committed
Highlight that Float functions return float
1 parent a2eaef1 commit c3224f9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/koans/03_numbers.ex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,26 +86,26 @@ defmodule Numbers do
8686
end
8787

8888
koan "I don't want this decimal point, let's round up" do
89-
assert Float.ceil(34.25) == ___
89+
assert Float.ceil(34.25) === ___
9090
end
9191

9292
koan "OK, I only want it to 1 decimal place" do
93-
assert Float.ceil(34.25, 1) == ___
93+
assert Float.ceil(34.25, 1) === ___
9494
end
9595

9696
koan "Rounding down is what I need" do
97-
assert Float.floor(99.99) == ___
97+
assert Float.floor(99.99) === ___
9898
end
9999

100100
koan "Rounding down to 2 decimal places" do
101-
assert Float.floor(12.345, 2) == ___
101+
assert Float.floor(12.345, 2) === ___
102102
end
103103

104104
koan "Round the number up or down for me" do
105-
assert Float.round(5.5) == ___
106-
assert Float.round(5.4) == ___
107-
assert Float.round(8.94, 1) == ___
108-
assert Float.round(-5.5674, 3) == ___
105+
assert Float.round(5.5) === ___
106+
assert Float.round(5.4) === ___
107+
assert Float.round(8.94, 1) === ___
108+
assert Float.round(-5.5674, 3) === ___
109109
end
110110

111111
koan "I want the first and last in the range" do

0 commit comments

Comments
 (0)