Simple rounding to decimal places

Asked

Viewed 13 times

-1

The code below results in a number of 12 decimal places after the comma.

            <?php
            echo
            $count_correct_answers / $count_questoes * 100 ;
            ?>

Can you help me correctly include a code to reduce to 2 decimal places after the comma? I am a beginner. Thank you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.