Using printf "%.2f\n", $i will give you what you expect.
In reply to Re: weird print behavior by kesterkester in thread weird print behavior by anjiro