Which of the following is used in PHP to declare a floating-point number?

  • int
  • float
  • string
  • boolean
In PHP, the float keyword is used to declare a floating-point number. Floats, also known as floating-point numbers or doubles, are used to represent real numbers with a decimal point. They 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 *