in reply to sprintf and for loop weirds???
@b = map { sprintf("%.2f", $_) } @a; [download]
Hope this helps...