ExKcal.SI.prefix_index

You're seeing just the function prefix_index, go back to ExKcal.SI module for more information.
Link to this function

prefix_index(prefix)

Specs

prefix_index(si_prefix()) :: integer()

Returns index of SI prefix relative to base (non-)prefix position. Negative shift factor will have negative index, positive factor will have positive index.

Examples

iex> import ExKcal.SI
iex> prefix_index(:m)
-3
iex> prefix_index(:M)
6