回答編集履歴

2

intdivを追記

2017/08/22 06:43

投稿

aro10
aro10

スコア4106

test CHANGED
File without changes

1

intdivを追記

2017/08/22 06:43

投稿

aro10
aro10

スコア4106

test CHANGED
@@ -3,3 +3,9 @@
3
3
  以下を参考にしてみてください。
4
4
 
5
5
  [四捨五入/切捨て/切り上げ ceil、floor、round](http://www.php-ref.com/bapi/05_round.html)
6
+
7
+
8
+
9
+ PHP7以降であればintdiv() も使えます。
10
+
11
+ [PHP 5.6.x から PHP 7.0.x への移行 intdiv() による整数の除算](http://php.net/manual/ja/migration70.new-features.php)