[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 191

 
abolk:

Of course you


You have a problem. Either with a sense of humour or with time.

I see two solutions:

1. Go back 2-3 pages, study the history of the issue.

2. Wait for Vinin's post (hopefully it will follow)

 
abolk:


of course you

Vinin wrote to you straight away:



And I wrote even more directly that it's about comparing a non-integer remainder of a division with an integer zero. do you feel the difference, or do you need clarification?

Vinin was the only one to say that only whole numbers should be determined in this way:)

 
tara:


You have a problem. Either with a sense of humour or with time.

I see two solutions:

1. Go back 2-3 pages, study the history of the issue.

2. Wait for Vinin's post (hopefully it will follow)


studied history without waiting for the post.

Conclusion: you have made a mess of things by putting a double in the question yourself, and you will have to sort it out.

 
abolk:


I studied the story without waiting for the post.

Conclusion: you yourself have confused everything by putting double into the question - you should sort it out yourself.


I just drew your attention to the fact that you should not compare double(remainder of division)==int 0.

What exactly did I confuse?

 

Can you tell me how the condition for opening a new bar is defined?

Should it be a function or operator? Thank you

 
Slava2007:

Can you tell me how the condition for opening a new bar is defined?

Should it be a function or operator? Thank you


Function. Find the code in Kovalev's textbook (a useful book, let me tell you)
 
Slava2007:

Can you tell me how the condition for opening a new bar is defined?

Should it be a function or operator? Thank you

double OpenBar=0; 
 
int start()
   {
    //Проверка на начало нового бара
    if (OpenBar==Time[0]) return; else OpenBar=Time[0];
   }
 
splxgf:

Thank you
 
Slava2007:
Thank you

You'd better not do that, my good advice to you.
 
tara:

You'd better not do that, my good advice.
Well, unfortunately, I don't fully understand your advice either. I'm looking through the book, but I haven't found it yet :)