PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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: wd270mat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment