We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbff1eb commit 17344afCopy full SHA for 17344af
1 file changed
lib/complex.ex
@@ -88,7 +88,7 @@ defmodule Complex do
88
89
defp to_string_component(n) when n == 0, do: "+0.0"
90
91
- defp to_string_component(n) do
+ defp to_string_component(n) when is_number(n) do
92
abs_s = Kernel.to_string(abs(n))
93
94
if n >= 0 do
0 commit comments