PHP int cast如何格式化?

sna*_*eol 1 php math int

(int)$ref_ios_24_sign/(int)$ref_ios_24 * 100 

Result : 35.7894736842
Wanted : 35.7
Run Code Online (Sandbox Code Playgroud)

Mar*_*c B 10

两个简单的选择:

round(35.7894736842, 1);
sprintf('%0.1f', 35.7894736842);
Run Code Online (Sandbox Code Playgroud)