You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Option for positive and negative numbers:
This seems to be a full-fledged replacement for ceil(),round(),floor(), which gives 3-4 times speed advantage.Looks more or less decent. I ran your _round(), remember showing the compare_prices() function. So, there's a script that searches for price patterns, obviously compare_prices() is called there very actively. Results:
compare_prices with std round and with point difference checking turned off = 19 sec
compare_prices with your _round and with point difference checking turned off = 15 sec
compare_prices with your _round and with point difference checking turned on = 13 sec
The conclusion is that the lion's share of calls in real-world tasks ends at checking in Point. Time is the same (when checking for differences at Point is on), but working range has fallen from 1.7*10^308 to about 2*10^9 (or ^19 if using long) (although a big round is needed as a fifth wheel in a cart). I don't know, maybe you use these functions exotically somehow ...
SZU:
wrap x in brackets.
It looks like Nikolai was right about the nerds )).
Personally, I didn't see any personal attacks there. And you do have a lot of letters in your posts, but everything is off-topic, it feels like you're arguing just for the sake of arguing.
If the CPU time you save is multiplied by a billion, even then it would be less than the time you spent on the discussion IMHO
Yes, I agree, wasted time is a pity - fact.
Yes, I agree, it's a waste of time - that's a fact.
Then why did you write here in the first place? I thought it was for discussion, discussion. Well, don't be so unreasonable. But do not relax, you have a whole unploughed field in front of you https://www.mql5.com/ru/docs/math. Good luck))
It looks more or less decent. I ran your _round(), remember showing the compare_prices() function. So, there's a script that searches for price models, obviously compare_prices() is called there very actively. Results:
So the conclusion is that the lion's share of calls in real tasks ends at checking in Point. Time is the same (when checking for differences at Point is on), while working range has fallen from 1.7*10^308 to about 2*10^9 (or ^19 if using long) (although a big round is needed as a fifth wheel of a cart). I don't know, maybe you use these functions exotically somehow ...
ZS:
Wrap x in brackets.
I could not understand - in what cases is it necessary to use this function:?
why notjust use if (first>second), or if you need a result (0,1 or 2) :
Because you don't need rounding functions here.
Or is it just for a test?
No, this is a real function. Just for the sake of interest, I've tweaked it into my workings. Nikolai, well, I understand that there's no need for discussion. I'll leave it at that.
No, this is a real function. Just for the sake of interest, I've tweaked it into my workings. Nikolai, well, I understand that there's no need for discussion. I'll leave it at that.
Then why did you write here at all? I thought it was for discussion, I'm discussing. Well, don't be so unreasonable. But you do not relax, in front of you whole unploughed field https://www.mql5.com/ru/docs/math. Good luck.)