push @array, sprintf "%.5f", "$number\n"; [download]
In reply to (s)printf and push by Anonymous Monk