How many ways can I write numbers in Elixir?

How many ways can I write numbers in Elixir?

You can write them in:

  • Decimal
  • Binary
  • Octal
  • Hexadecimal

iex> 1.0
1.0
iex> 10
10
iex> 0b1010
10
iex> 0o777
511
iex> 0x1F
31

Comments

Popular posts from this blog

Vim vi how to reload a file your editing