Skip to content

Instantly share code, notes, and snippets.

@flaviors200
Last active May 15, 2019 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flaviors200/875860b03cdca98d7cf2311e42795696 to your computer and use it in GitHub Desktop.
Save flaviors200/875860b03cdca98d7cf2311e42795696 to your computer and use it in GitHub Desktop.
Float data type
<?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