Hi everyone - I am helping to build a website for a good friend of mine & we are adding into the website an easy to read conversion rate.

The only problem we have at the moment is the value is being displayed incorrectly.

for instance - If the website has 6 views and 3 sales - Our conversion rate should show 50.0%
but the value is being displayed as 0.5%

I must being getting the format wrong as I have tried both
$ftcr = sprintf("%001.2f", $tcr); &
<?php echo round($totalcr,2); ?>

Anyone know why or how I can display the conversion rate as 50.0%

4 Years
Discussion Span
Last Post by DaveyMoyes
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.