for (0.35,0.45){print sprintf("%.1f",$_);print "\n"} # result: 0.3 0.5