in reply to quick question,why int turns to float

Because 1/10 is a periodic number in binary, it can't be stored exactly by a computer. Either round the number, or work with integers:
for (0..99) { my $i = $_/100; print("$i\n"); }