• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

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