Solved

how do u find modulos in delphi?

Posted on 2000-04-28
1
142 Views
Last Modified: 2010-04-04
what is the delphi equivalent of the C command x=y%z?
here x contains teh remainder of y divided by z
0
Comment
Question by:twilight_prince
1 Comment
 
LVL 15

Accepted Solution

by:
simonet earned 15 total points
ID: 2759072
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Path  to current project in Delphi. 2 90
code issue 8 153
Base1 Encode/Decode 3 81
scroll down TListBox component in Delphi 1 19
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question