Last active
May 15, 2019 23:45
-
-
Save flaviors200/875860b03cdca98d7cf2311e42795696 to your computer and use it in GitHub Desktop.
Float data type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$float = 123.30; | |
$float2 = 120e-3; // Sintassi con esponente | |
echo $float."\n"; | |
echo $float2; | |
/* | |
Output | |
123.30 | |
0.12 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment