Ash*_*orf 9 elixir
如何取Elixir中数字的平方根?似乎没有Math模块或任何东西,并且没有类似的功能sqrt().
Math
sqrt()
小智 9
Elixir编译为BEAM,使其与Erlang模块兼容.正如你所说,:math.sqrt(x)本质上是运行Erlang代码.
:math.sqrt(x)
Ash*_*orf 8
哈。找到了。你像这样取平方根:
归档时间:
7 年,11 月 前
查看次数:
1471 次
最近记录: