How can I calculate a number with an exponent in Elixir?
For example, 23 would return 8.
:math.pow(2,3) #=> 8.0
If you want an integer:
:math.pow(2,3) |> round #=> 8
How do I join two strings in a list with a space, like: ["StringA", "StringB"] becomes "StringA StringB"
In Elixir how do you check for type such as in Python: >>> a = "test" >>> type(a) <type 'str'> >>> b =10 >>> type(b) <type 'int'> I …
I need to convert a string to a floating point value or an integer. There was no method such as, string_to_integer