Skip to content

Commit c373edf

Browse files
author
José Valim
committed
Improve float docs
1 parent 1bd50f4 commit c373edf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/elixir/lib/float.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ defmodule Float do
9494
end
9595

9696
@doc """
97-
Round a float to the largest integer less than or equal to `num`
97+
Rounds a float to the largest integer less than or equal to `num`.
9898
9999
## Examples
100100
@@ -117,7 +117,7 @@ defmodule Float do
117117
end
118118

119119
@doc """
120-
Round a float to the largest integer greater than or equal to `num`
120+
Rounds a float to the largest integer greater than or equal to `num`.
121121
122122
## Examples
123123
@@ -158,5 +158,4 @@ defmodule Float do
158158
def round(number, precision) when is_float(number) and is_integer(precision) and precision in 0..15 do
159159
Kernel.round(number * :math.pow(10, precision)) / :math.pow(10, precision)
160160
end
161-
162161
end

0 commit comments

Comments
 (0)