Download MetaTrader 5
To add comments, please log in or register
Any problems with the code? Find solution in documentation!
Shin Joo Young
280
Shin Joo Young 2015.03.15 03:32 

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
1401
SYED NAUFAL GADDAFI 2015.03.15 03:59  
Show us what you have done. If it is not to hard someone will help you. Use SRC when posting codes.
Ovo Cz
2953
Ovo Cz 2015.03.15 07:05  
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