How could i show only one digit after floating point
$f = sprintf ("%.1f",$per); echo "You hit".$f." By this code i can show
only one digit after floating point.But when my result is 100%,then it
shows 100.0%. I want to show 100%. how could i do this????
No comments:
Post a Comment