<script type="text/javascript">
<!--
if(navigator.userAgent.indexOf("MSIE") > -1){ //Internet Explorer
document.write('<!-'+'-[if IE]>');
document.write('<input type="button" valu…
小数点以下第2位で四捨五入
$num2 = round($num1,2);
echo $num2;
これで$num2は小数点第二位まで表示されます。(12.22、5053.35など)
この投稿へのコメント
コメントはまだありません。