#elixir
If you want to do integer division or get the division remainder, you can invoke the div
and rem
functions
If you want to change selection, open document below and click on "Move attachment"
Basic types - The Elixir programming languageessions: iex> 1 + 2 3 iex> 5 * 5 25 iex> 10 / 2 5.0 Notice that 10 / 2 returned a float 5.0 instead of an integer 5. This is expected. In Elixir, the operator / always returns a float. <span>If you want to do integer division or get the division remainder, you can invoke the div and rem functions: iex> div(10, 2) 5 iex> div 10, 2 5 iex> rem 10, 3 1 Notice that Elixir allows you to drop the parentheses when invoking named functions with at least one argument. This featur Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details