Math function, I came with mql5 download and install don' t agree with the MQL5 web page

 

math_down.png is  Math.h came with QML5 download when I ,first time, installed MQL5. mql5 mathabs.png is the screen short of  QML5 Reference->Math function. Those two function don't have the same return signature. Math.h return a boolean status while the reference return results.

All of the mathematic functions are that way (disagree on return signature).

Any comment on this.

Files:
mql5_mathabs.png  129 kb
math_down.png  112 kb
 
black_building:
All of the mathematic functions are that way (disagree on return signature).

Those functions are from different universes. One is built-in (predefined), the other is from the standard library.

Obviously, a function that changes the size of an array can fail.
 
Vladislav Boyko #:

Those functions are from different universes. One is built-in (predefined), the other is from the standard library.

Obviously, a function that changes the size of an array can fail.
How do I get the Math Functions (return result)? Some of the project listed in this web site are using math functions which return result.
 
black_building #:
How do I get the Math Functions (return result)?

What exact result do you want to get?

  • The built-in function already returns a floating-point number (and accepts a numeric value).
  • The standard library function returns true if successful, otherwise false. This function has arrays at its input and output. You cannot return an array (using the return statement) even if you imagine that the function never fails.

black_building #:
Some of the project listed in this web site are using math functions which return result.

Do it in a similar way to those projects if you want.