php tutorial - PHP Datatypes Float - php programming - learn php - php code - php script




  • A floating point number is a number with a decimal point or a number in exponential form.
  • Floating point numbers have limited precision.

php code Syntax :

<?php
    $x = float;
    var_dump($x);
?>
click below button to copy the code. php tutorial - team

Syntax Explanation :

  • Here $x is a float.
  • $x is a float. The PHP var_dump() function returns the data type as float with its float value.

learn php Sample Code : a simple php program

<!DOCTYPE html>
<html>
    <head>
        <title>Datatype-Float</title>
    </head>
    <body>
        <?php
            $a = 0.758;
	    var_dump($a);
        ?>
    </body>
</html>
click below button to copy the code. php tutorial - team

php for beginners Code Explanation :

Code Explanation for Datatype Float In PHP

  1. In PHP, $a = 0.758 is a float variable that is holds the integer value =0.758.
  2. In PHP, var_dump() this function returns the data type as float with its float value as 0.758.

php tutorials Sample Output :

output for Datatype Float In PHP

  1. var_dump() function returns the float data type with its float value as 0.758 i.e., float(0.758).


Related Searches to php datatype float

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×