Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 485

 
pako:

so what's the problem?


?
 
alex12:

Can you tell me if it is possible to calculate a number in the mql4 editor: 108 to the 4096th power.

And if so, how to do it.


No, it will be 8.01129039727145009060093343395e+8328 and the most "capacious" data type, double, allows a maximum value of 1.7976931348623158e+308.
 

what does e+8328 mean ?

 
It means a number with 8328 digits after the first digit. I don't think there are that many particles in the whole universe, it's like 10^81, i.e. 1,e+81 )))
 

if the data type is double, allows maximum value1.7976931348623158e+308

what is the maximum power of a number?

 

If you take your number 108, you will get at most 151 to the power of 151 - 108^151=1.11426138071861e+307

108^152=1.20340229117609e+309 is too much for MCL programming, let alone 108^4096

What kind of calculations would require such a scale?

 
so it turns out you can represent this number = 1 and 307 zeros ?
 
Roughly speaking, yes.
 

so this number is: 8.01129039727145009060093343395e+8328

can be roughly expressed as 8 and 8328 zeros ?

 
evillive:

If you take your number 108, you will get at most 151 to the power of 151 - 108^151=1.11426138071861e+307

108^152=1.20340229117609e+309 is too much for MCL programming, let alone 108^4096

What kind of calculations would require such a scale?


I'm trying to synthesise price movement analytics and nlp attention management, and brain on autopilot :)