php (sprintf('%.3f', string))
$i = 1; echo sprintf('%.3f', $i); // 1.000
javascript (string.toFixed(3))
let i = 1; console.log(i.toFixed(3)); // 1.000
php (sprintf('%.3f', string))
$i = 1; echo sprintf('%.3f', $i); // 1.000
javascript (string.toFixed(3))
let i = 1; console.log(i.toFixed(3)); // 1.000
已默默运行了
Made By astipsy.