<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>4-3Math-round练习</title>
<script type="text/javascript">
//四舍五入
alert("25.5:" +Math.round(25.5));
alert("25.4:" +Math.round(25.4));
alert("-25.5:" +Math.round(-25.5));
alert("-25.4:" +Math.round(-25.4));
</script>
</head>
<body>
</body>
</html>