Forum Moderators: coopster
<?php
printf ("%5.2f", $numbertoberounded);
?>
That part works fine, where I am running into trouble is when I try to store the rounded number in a new variable. Trying to figure it out on my own I tried
<?php
$newvariable = ("%5.2f", $numbertoberounded);
?>
which obviously didn't work. Anyone have any ideas? Thanks