PHP Tutorial 44 How to specifying Number Precision by using printf in PHP Programming

Опубликовано: 22 Октябрь 2024
на канале: bou chhun
258
2

PHP Tutorial 44, This video demonstrate How to specifying Number Precision by using printf in PHP Programming. When displaying floating - point numbers with the f or F type specifier, you can use a precision specifier to indicate how many decimal places to round the number to. To add a precision specifier, insert a period (.), followed by the number of decimal places to use, before the type specifier: