Skip to content

Commit 7be8583

Browse files
03juanjosevalim
authored andcommitted
Update float.ex description of ceil/2 and floor/2 (#13084)
1 parent 37f8832 commit 7be8583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/float.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ defmodule Float do
198198
defp add_dot(acc, false), do: acc <> ".0"
199199

200200
@doc """
201-
Rounds a float to the largest number less than or equal to `num`.
201+
Rounds a float to the largest float less than or equal to `number`.
202202
203203
`floor/2` also accepts a precision to round a floating-point value down
204204
to an arbitrary number of fractional digits (between 0 and 15).
@@ -246,7 +246,7 @@ defmodule Float do
246246
end
247247

248248
@doc """
249-
Rounds a float to the smallest integer greater than or equal to `num`.
249+
Rounds a float to the smallest float greater than or equal to `number`.
250250
251251
`ceil/2` also accepts a precision to round a floating-point value down
252252
to an arbitrary number of fractional digits (between 0 and 15).

0 commit comments

Comments
 (0)