Use the [code ]round()[/code] function: [1] [code]$number = 323.299; $decimals = 2; $rounded = round($number, $decimals); [/code]Of course, you don't need ...
確定! 回上一頁