RDIV()

RDIV()

Top  Previous  Next

 

The RDIV() function returns the rounded integer result of dividing two values

 

 

Format

 

RDIV(dividend, divisor)

 

where

 

dividendevaluates to the value to be divided.

 

divisorevaluates to the value by which dividend is to be divided.

 

 

The RDIV() function divides dividend by divisor and returns the result as an integer, rounded according to the rule that values with a fractional part of 0.5 or greater are rounded away from zero.

 

A zero value of divisor will cause a run time error.

 

 

Examples

 

Dividend

Divisor

Result

132

10

13

135

10

14

-135

10

-14

 

 

See also:

DIV(), IDIV()