使用PHP在特定计数中转换/调整数字

1 php numbers count

我有号码1543,我想确保找到最接近1543的数字,每100个数.例如:

1527 = 1500

1563 = 1600

12034 = 12000

12081 = 12100

我希望你理解.

Rik*_*esh 6

使用round()精度值为的函数-2,

round( $number, -2);
Run Code Online (Sandbox Code Playgroud)

键盘Viper演示.