PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Modulo (Reserved word)
In french: Modulo
Returns the remainder of a division.
Remark: Modulo can be used as keyword or as WLanguage function.
Example
// Retrieve the remainder of division
DivisionRemainder = modulo(21, 4) // DivisionRemainder is set to 1
// Equivalent to: DivisionRemainder = 21 Modulo 4
Syntax

Modulo function Hide the details

<Result> = Modulo(<Dividend> , <Divisor>)
<Result>: Integer
Remainder of division.
<Dividend>: Integer
Dividend of division.
<Divisor>: Integer
Divisor of division. A WLanguage error occurs if this parameter is set to 0.

Modulo keyword Hide the details

<Division Remainder> = <Dividend> Modulo <Divisor>
<Division Remainder>: Integer
Remainder of division.
<Dividend>: Integer
Dividend of division.
<Divisor>: Integer
Divisor of division. A WLanguage error occurs if this parameter is set to 0.
Component : wd250mat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment