precision
precision (mixed $number, int $precision = 3)
This method displays a number with the specified amount of precision (decimal places). It will round in order to maintain the level of precision defined.
Простой текст<?php echo $number->precision(456.91873645, 2 ); ?>//Outputs:456.92


Коментарии:
Добавить коментарий