About Math Calculation Precision in MQL4

 

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?

 
Show us what you have done. If it is not to hard someone will help you. Use SRC when posting codes.
 
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/

Reason: