Mod PowerScript function
Description
Obtains the remainder (modulus) of a division operation.
Syntax
1 |
<span>Mod</span> ( <span>x</span>, <span>y</span> ) |
Argument |
Description |
---|---|
x |
The number you want to divide by y |
y |
The number you want to divide into x |
Return Values
The datatype of x or y,
whichever datatype is more precise. If any argument’s value
is null, Mod returns null.
Examples
This statement returns 2:
1 |
<span>Mod</span>(20, 6) |
This statement returns 1.5:
1 |
<span>Mod</span>(25.5, 4) |
This statement returns 2.5:
1 |
<span>Mod</span>(25, 4.5) |
See Also
-
Mod method
for DataWindows in the DataWindow Reference or the online Help
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest