View Single Post
  #7 (permalink)  
Old 10-30-2005, 11:00 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow Exponential notation can't be used in MQL4.

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;
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm

Last edited by codersguru; 10-31-2005 at 12:59 AM.
Reply With Quote