About Math Calculation Precision in MQL4

Back to topics list To post a new topic, please log in or register
avatar
15
tlswn128 2015.03.15 04: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?

avatar
1211
deysmacro 2015.03.15 04:59 #
 
Show us what you have done. If it is not to hard someone will help you. Use SRC when posting codes.
avatar
1109
Ovo 2015.03.15 08: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/

Back to topics list  

To add comments, please log in or register