PHP Float Number:
In our daily life we use different kind of number systems. Integer and Float numbers are most common in use. In the current tutorial we will study about Float number system.
Float number system or floating point numbers also known as "floats", "doubles", or "real numbers".
Following examples will help you to learn floating point number precisely.
<?php$a=34.0000; echo "Value of a is:".$a; echo '<br/>Value of a is :'.((float)($a)); echo "<br/>Data type of a is; ". (gettype($a));
Value of a is:34
Value of a is :34
Data type of a is; double
float(1.234) float(1200) float(7.0E-10)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.