XL: Undocumented ROUNDUP() and ROUNDDOWN() Functions

ID: Q105955


The information in this article applies to:


SUMMARY

The ROUNDUP() and ROUNDDOWN() functions, available in Microsoft Excel versions 4.0 and later, are not documented in the "Function Reference" version 4.0. These functions are similar to the CEILING() and FLOOR() functions.


MORE INFORMATION

ROUNDUP()

The Roundup function rounds a number up, away from zero.

Syntax:


   ROUNDUP(number, num_digits) 


Number is any real number that you want rounded up. Num_digits is the number of digits to which you want to round the number.

ROUNDUP() behaves similarly to the ROUND() function, except that it always rounds a number up based on the following rules:

Examples:


   ROUNDUP(3.2,0) equals 4
   ROUNDUP(76.9,0) equals 77
   ROUNDUP(3.14159, 3) equals 3.142
   ROUNDUP(-3.14159, 1) equals -3.2
   ROUNDUP(31415.926, -2) equals 31500 


ROUNDDOWN()

Rounds a number down, toward zero.

Syntax:


   ROUNDDOWN(number, num_digits) 


Number: any real number that you want rounded down. Num_digits: the number of digits to which you want to round number.

ROUNDDOWN() behaves similarly to the ROUND() function, except that it always rounds a number down based on the following rules:

Examples:


   ROUNDDOWN(3.2, 0) equals 3
   ROUNDDOWN(76.9,0) equals 76
   ROUNDDOWN(3.14159, 3) equals 3.141
   ROUNDDOWN(-3.14159, 1) equals -3.1
   ROUNDDOWN(31415.92654, -2) equals 31400 

Additional query words: round 4.00a 5.00a 5.00c 7.00a 97 98 XL98 XL97 XL7 XL5 XL4


Keywords          : 
Version           : WINDOWS:4.0a,5.0c,7.0a,97; MACINTOSH:4.0,5.0,5.0a,98
Platform          : MACINTOSH WINDOWS 
Issue type        : 

Last Reviewed: April 8, 1999