The ______ data type in PHP is used to store a number with a decimal point.

  • int
  • float
  • string
  • array
The float data type in PHP is used to store a number with a decimal point. Floats, also known as floating-point numbers or doubles, can represent real numbers and are used when precision is required in calculations involving decimal values. Floats can hold positive and negative values with varying degrees of precision. Learn more: https://www.php.net/manual/en/language.types.float.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *