0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PHPでの数字系の関数

Posted at

学習記録

#前提条件
・PHP version 5.4

#数字系の関数

関数 概要         
ceil()           切り上げ
floot()           切り捨て
round()      四捨五入
round(a, '○')        aを小数○桁になるように四捨五入
mt_rand(a, b) aからbのランダム整数値を返す
max(a, b, c,...) ()内の最大値を返す
min(a, b, c,...) ()内の最小値を返す
M_PI 円周率
M_SQRT2 2の平方根
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?