xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Mod()

Calculates the modulus of two numbers.

Syntax

Mod( <nDividend>, <nDivisor> ) --> nRemainder

Arguments

<nDividend>
This is the numeric dividend of the division operation.
<nDivisor>
This is the numeric divisor of the division operation.

Return

The function returns the numeric remainder of a division of <nDividend> by <nDivisor>.

Description

Function Mod() exists for compatibility reasons only. It is superseeded by the modulus operator.

Info

See also:% operator
Source:rtl\mod.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe