Logo

Programming-Idioms

History of Idiom 79 > diff from v18 to v19

Edit summary for version 19 by :
New Java implementation by user [lbayer]

Version 18

2016-02-17, 03:00:12

Version 19

2016-02-18, 16:58:01

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
my $y = $x;
Code
my $y = $x;
Comments bubble
in perl they are just scalars, there is no distinction between an int and a float
Comments bubble
in perl they are just scalars, there is no distinction between an int and a float