You can use the round(), ceil(), and floor() functions to round a fraction up or down to
Fantastic news! We've Found the answer you've been seeking!
Question:
You can use the round(), ceil(), and floor() functions to round a fraction up or down to the nearest whole number. The round() function rounds a fraction to the nearest whole number, the ceil() function rounds a fraction up to the nearest whole number, and the floor() function rounds a fraction down to the nearest whole number. Write a script that demonstrates the use of these functions. Save the document as RoundedValues.php.
Related Book For
University Physics with Modern Physics
ISBN: 978-0321501219
12th Edition
Authors: Hugh D. Young, Roger A. Freedman, Lewis Ford
Posted Date: