A

Admin • 833K Points
Coach

Q. Which function is used to round a number to the nearest integer in PHP?

  • (A) round()
  • (B) ceil()
  • (C) floor()
  • (D) nearest()
  • Correct Answer - Option(A)
  • Views: 29
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

round() rounds a float to the nearest integer.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.