ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage syntax / Reserved keywords
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Modulo (Reserved word)
In french: Modulo
Returns the remainder of a division.
Note: Modulo can be used either as a keyword or as a WLanguage function.
Example
DivisionRemainder is int
// Get the remainder of a division
DivisionRemainder = modulo(21, 4) // DivisionRemainder is set to 1
// Equivalent to: RemainderDivision = 21 Modulo 4
// Version 2024: Equivalent to: RestDivision = 21%4
Syntax

Modulo function Hide the details

<Result> = Modulo(<Dividend> , <Divisor>)
<Result>: Integer
Remainder of a division.
<Dividend>: Integer
Dividend of a division.
<Divisor>: Integer
Divisor of a 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 a division.
<Dividend>: Integer
Dividend of a division.
<Divisor>: Integer
Divisor of a division. A WLanguage error occurs if this parameter is set to 0.

Operator % Hide the details

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

Last update: 09/30/2024

Send a report | Local help