Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は 1543 という数字を持っています。100 ごとに数えられる 1543 に最も近い数字を見つけたいと思います。例:
1527 = 1500 1563 = 1600 12034 = 12000 12081 = 12100
1527 = 1500
1563 = 1600
12034 = 12000
12081 = 12100
ご理解いただければ幸いです。
round()の精度値で関数を使用します-2。
round()
-2
round( $number, -2);
Codepad Viper デモ。
これを行うには、数値を 100 で割り、round関数を使用します。