Free download web templates, books and more. Free php projects ,games and apps. GTA mods and more

Breaking

float data type

php Float Data type

the float data type is the point value consider (22.11)
This data type represents decimal values. The float (floating point number) is a number with a decimal point or a number in exponential form.

Syntax

  1. $a=2.23;  
  2. $b=3.2e4;  
  3. $z=7E-10;  

Example

  1. <?php  
  2.     $float=22.41;  
  3.     echo $float;  
  4. ?>  
Output: 22.41