Download MetaTrader 5

About Math Calculation Precision in MQL4

To add comments, please log in or register
Shin Joo Young
417
Shin Joo Young  

I made a source for statistical calculations.

It calculates well if I input 0-200 numbers, but

If I input large numbers, it makes errors.


I know that's because the source needs more digits than double.

I want to use long-double value in MQL4. Is there any methods for use it?

SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
Show us what you have done. If it is not to hard someone will help you. Use SRC when posting codes.
Ex Ovo Omnia
3358
Ex Ovo Omnia  
tlswn128:

I made a source for statistical calculations.

It calculates well if I input 0-200 numbers, but

If I input large numbers, it makes errors.


I know that's because the source needs more digits than double.

I want to use long-double value in MQL4. Is there any methods for use it?

You have a chance to append a dll library to your code. I performed a quick google search and found this, though not sure if it was universal solution. Perhaps you can find something more suitable.

https://devtalk.nvidia.com/default/topic/509693/double-double-precision-arithmetic-library-now-available/

To add comments, please log in or register