这是显示这样的结果 70.479
我想要这样的结果 70.500
我该怎么做请帮我解决这个问题谢谢
<?php //Starting of php
if(isset($_POST['submit']))//if the submit button has pressed
{
$first = $_POST['first']; //Getting Value of first integer from add.html
$sec = $_POST['sec']; //Getting Value of Second integer from add.html
$res = $first * $sec *75 /365 /30; //Adding the two values and placing the added result to 'res' variable
echo 'Added Result:';
echo "<br>Rounded value of the number = ".round($res,3);
}
//Ending of php
?>