Logo

Programming-Idioms

History of Idiom 79 > diff from v23 to v24

Edit summary for version 24 by programming-idioms.org:
[Elixir] +DemoURL

Version 23

2016-10-26, 12:14:43

Version 24

2016-11-30, 22:40:12

Idiom #79 Convert integer to floating point number

Declare floating point number y and initialize it with the value of integer x .

Idiom #79 Convert integer to floating point number

Declare floating point number y and initialize it with the value of integer x .

Code
y = x / 1
Code
y = x / 1
Comments bubble
The / operator always returns a float.
Comments bubble
The / operator always returns a float.
Demo URL
http://play.elixirbyexample.com/s/db4d310ba3