in reply to weird print behavior
Using printf "%.2f\n", $i will give you what you expect.
printf("%.14f\n", (6.8 + .1)); [download]