• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

how do u find modulos in delphi?

what is the delphi equivalent of the C command x=y%z?
here x contains teh remainder of y divided by z
0
twilight_prince
Asked:
twilight_prince
1 Solution
 
simonetCommented:
Use the MOD operator. Example:

X := Y mod z;

All operands must be of an integer type (Integer, Smallint, byte, word, dword, cardinal, longint, etc).

Yours,

Alex
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now