DataBasic Reference > Statements and Intrinsic Functions > M > MODS Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

MODS Function (DataBasic) (m618703+mods_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

MODS Function

Divides the elements in one dynamic array by those in another, calculating the remainders.

Syntax

MODS(dynArray1, dynArray2)

Syntax Elements

dynArray1, dynArray2
DataBasic expressions that evaluate to dynamic arrays.

Return Value

A dynamic array formed by combining dynArray1 and dynArray2. Each element contains the remainder of dividing the element in dynArray1 by the corresponding element in dynArray2.

Notes

Operation

The remainder is calculated using the formula A - (INT(A/B) * B).

Example

ARY1 = 5:@AM:27:@AM:128
ARY2 = 2:@AM:10:@AM:64
NEWARY = MODS(ARY1, ARY2)

Sets NEWARY to "1AM7AM0".

RealityV15.1 (MoTW) Revision 7Comment on this topic