Truncating Floats in Elixir
To remove everything after the decimal point in a floating-point number, use Kernel.trunc/1.
Alternatively, you can simply type trunc
To remove everything after the decimal point in a floating-point number, use Kernel.trunc/1.
Alternatively, you can simply type trunc