Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#elixir
Question

Floats in Elixir are 64-bit double precision.

You can invoke the round function to get the closest integer to a given float, or the [...] function to get the integer part of a float.

Answer
trunc

Tags
#elixir
Question

Floats in Elixir are 64-bit double precision.

You can invoke the round function to get the closest integer to a given float, or the [...] function to get the integer part of a float.

Answer
?

Tags
#elixir
Question

Floats in Elixir are 64-bit double precision.

You can invoke the round function to get the closest integer to a given float, or the [...] function to get the integer part of a float.

Answer
trunc
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
Floats in Elixir are 64-bit double precision. You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float.

Original toplevel document

Basic types - The Elixir programming language
ex> 0b1010 10 iex> 0o777 511 iex> 0x1F 31 Float numbers require a dot followed by at least one digit and also support e for scientific notation: iex> 1.0 1.0 iex> 1.0e-10 1.0e-10 <span>Floats in Elixir are 64-bit double precision. You can invoke the round function to get the closest integer to a given float, or the trunc function to get the integer part of a float. iex> round(3.58) 4 iex> trunc(3.58) 3 Identifying functions and documentation Functions in Elixir are identified by both their name and their arity. The arity of a function descri

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.