Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 06:16:53 +0000



MODULO

View Count: 687

[2016-09-22 17:49:12]
User82615 - Posts: 106
HELLO I'VE BEEN READING THE MANUALS OF C++ AND I DON'T UNDERSTAND THE MODULO EXPESION %.

CAN ANYBODY EXPLAIN ME THIS EXAMPLE THAT IS IN THE MANUAL OF C++?

a = 11 % 3;

the variable a will contain the value of 2 , since 2 is the reminder from dividing 11 between 3.

CAN ANYBODY EXPLAIN ME THIS PLEASE?
THANK YOU VERY MUCH
[2016-09-22 18:11:44]
Sierra Chart Engineering - Posts: 104368
11รท3 is 3 with a remainder of 2. So this operator returns the remainder which is 2.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account