Quote:
|
Originally Posted by newdigital
May exponential notation be used in the code?
for example:
double fCoefficient = 2.5E-4
|
newdigital,
Your questions enrich the course. Thanks!
I've used the exponential notation in my lesson to tell you what the range of float data type is (2.2e-308 to 1.8e308), because I can't write these numbers in decimal notation.
Do you imagine 307 zeros in the right of the number 18 to present the number 1.8e308.
In MQL4, you
can't use the exponential notation.
To present the number
2.5E-4 in MQL4 you have to write it in decimal notation like this:
double fCoefficient = 0.00025;