This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Functions, Part I Forum

View Course » View Exercise

851 points
50bf57ebc4fca996a00048bb_151385783
Submitted by
Rachel Lopez
almost 3 years ago

4/8 bug?

<?php
$round = round(M_PI); 
print $round;
?>
</p>
<p>
<?php
$round_decimal = round(M_PI, 3);
print $round_decimal;
?>

My code works and it shows up, but i cant proceed to the next exercise because this error message shows up:

Oops, try again. Did you remember to use round() in your code?

I dunno maybe I'm just misreading the question.


3 votes

permalink

I copied and pasted that code, and it accepted it for me. Reload the page and try again?

121 points
Picture
Submitted by
Samuel Martin
almost 3 years ago

3 Comments

54d7878fe39efe8c7a001863_756191777 MananC07 almost 3 years ago

Ya , IT Works , Samuel Is Correct Try Reloading

D55907577da7955ee1fd47c4f5aff645?s=140&d=retro Paul Crary over 2 years ago

I agree with MananC07

55a01fd5e39efe4ab700008d_693488337 JollyJuggler02 over 2 years ago

Most of the issues can be solved with reload/reset.


0 votes

permalink

I couldn't figure it out also. =Getting me frustrated

202 points
Picture
Submitted by
Dalexis Perez
almost 3 years ago


0 votes

permalink

I found that through out all the lessons there seems to be bugs with indentation or new lines.

play around with your empty spaces, create a new line around where you're getting the error or delete the indentations and indent again, refresh the page and submit.

747 points
4e1cffcbbf7f2ece4c3abfda4ea1756d?s=140&d=retro
Submitted by
CJ Bradbury
almost 3 years ago


0 votes

permalink

I think you have to close (paragraph)

340 points
D8149d1e23e730134453bb5bd04b4df9?s=140&d=retro
Submitted by
arnabroy
over 2 years ago

1 Comment

D8149d1e23e730134453bb5bd04b4df9?s=140&d=retro arnabroy over 2 years ago


0 votes

permalink

I have copied your code to see if its correct it worked just fine if still does not work make sure you are in chrome... this litterally what i have had to do a lot beacuse php is so buggy if u just copy your code and delete it and then replace it it will work i hope this helps catch u on the flip side

1051 points
5514083286f552209c001897_325895797
Submitted by
DarkSoulsLover54
over 2 years ago


0 votes

permalink

it worked for me

811 points
D55907577da7955ee1fd47c4f5aff645?s=140&d=retro
Submitted by
Paul Crary
over 2 years ago