Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $flotante = 2.999;
- $sinDecimales = intval($flotante);
- echo $sinDecimales; # Imprime 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement