Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php round() function

<?php
  
  /*The round() function rounds a floating-point number to its nearest 
  integer:
  */
echo(round(0.72));  # Returns 1
echo(round(0.23));  # Returns 0
echo(round(-4.13)); # Returns -4
echo(round(152)); # Returns 152
 
PREVIOUS NEXT
Tagged: #php #function
ADD COMMENT
Topic
Name
9+4 =