Ergo.NumericParsers.number

You're seeing just the function number, go back to Ergo.NumericParsers module for more information.
Link to this function

number(opts \\ [])

The number parser matches both integer and decimal string and converts them into their appropriate Elixir integer or float values.

Examples

iex> import Ergo.NumericParsers
iex> assert %{status: :ok, ast: 42} = Ergo.parse(number(), "42")

iex> import Ergo.NumericParsers
iex> assert %{status: :ok, ast: -42} = Ergo.parse(number(), "-42")

iex> import Ergo.NumericParsers
iex> assert %{status: :ok, ast: 42.0} = Ergo.parse(number(), "42.0")

iex> import Ergo.NumericParsers
iex> assert %{status: :ok, ast: -42.0} = Ergo.parse(number(), "-42.0")

iex> import Ergo.NumericParsers
iex> assert %{status: :ok, ast: 0} = Ergo.parse(number(), "0")

iex> import Ergo.NumericParsers
iex> assert %{status: :ok, ast: 0} = Ergo.parse(number(), "0000")

iex> import Ergo.NumericParsers
iex> assert %{status: {:error, _}} = Ergo.parse(number(), "Fourty Two")

iex> import Ergo.NumericParsers
iex> assert %{status: :ok, ast: 42} = Ergo.parse(number(), "42Fourty Two")