I'm trying to get started with some simple examples, translating Introducing Erlang to Elixir, but I can't find a Math module - sin, cos, pi, sqrt, etc.
Is there one? Or a simple way to call the Erlang version?
Also, it doesn't seem like Erlang's syntax for representing integers in bases other than 10 is supported. Is there any other built-in way to do that?
Sorry for the strange simple question, but I'm not finding an answer. The Getting Started guide creates a Math module as an example, but sum isn't the function I'm looking for.
Thanks,
Simon St.Laurent
http://simonstl.com/
You can also easily represent numbers in binary, octal and hex in Elixir:iex(4)> 0b102iex(5)> 0108iex(6)> 0x1016
--
--
--
On master (which is going to be released as 0.8.0 in a couple hours), you should use 010.On previous versions (before 0.8.0), we had the 0o10.Sorry for the confusion, Simon.