Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > REM

 

 

Purpose

REM returns the remainder of a division operation.
 

Syntax

variable = REM(operand1,operand2)
 

Operation

operand1 is the dividend (number to be divided).  It can be any valid numeric constant, variable, or expression.
operand2
 is the divisor (number by which dividend is to be divided).  It can be any valid numeric constant, variable, or expression.
 

Remarks

The value returned is the remainder of operand1 divided by operand2.
 

Example

Assume #A = 23,   #B = 4, and #C = 17.

#I = REM (#A, #B)                sets #I to 3
#I = REM (#C, #B)                sets #I to 1
 

Comment on this topic

Topic ID: 520103

 
 
 

Table of Contents

Index

Glossary

-Search-

Back