Error in round(M_PI)


#1

<?php
// Try rounding a floating point number to an integer
// and print it to the screen
$round = round(M_PI);
print $round;

?>
</p>
<p>
<?php
// Try rounding a floating point number to 3 decimal places
// and print it to the screen

$round_decimal = (M_PI, 3);
print $round_decimal;
?>

Please help me in this code what is error in this code


#2

$round_decimal = round(M_PI, 3);
print $round_decimal;

#3

thanx dear now it work


#4

We could also use,

echo $round_decimal;

You're welcome!