Changes

Jump to: navigation, search

Understanding PHP Variable Types

397 bytes added, 19:20, 25 May 2007
The PHP Float Variable Type
== The PHP Float Variable Type ==
 
Floating point variables contain numbers that require the use of decimal places. In addition, float variables can store whole numbers up to higher values than the integer variable type (such as 1.067, 0.25, 423454567098, 84664435.9576). Floating point variable creation and intialization examples are as follows:
 
<pre>
<?php
 
$myFloat = 9234.98;
 
$myOtherFloat = 9547894367.987483701
 
?>
</pre>

Navigation menu