Copy link to clipboard
Copied
In a script like below:
exampleMc.gotoAndPlay(_loc1 * 1.990000E+001 + 1);
What exactly is the number 1.990000E+001?
Thanks,
19.9
you can always use the trace() function.
Copy link to clipboard
Copied
19.9
you can always use the trace() function.
Copy link to clipboard
Copied
Thanks for the answer. Is there a page explaining this E + thing? Why does it use a numbering system like this instead of just putting 19.9?
Copy link to clipboard
Copied
that's exponential or scientific notation. so,
1.99E+001 = 1.99 x 10(to the 1 power) = 1.99x10 = 19.9
if you had:
1.00E-002 = 1.00 x 10(to the -2 power) = 1.99/10^^2 = .0199
that's often used to express small or large numbers and is easier to read than writing the decimal representation. the code you posted looks like it was generated by a decompiler program and may have its own reasons for using scientfic notation instead of decimal notation.
Copy link to clipboard
Copied
Thank you for the information!
Copy link to clipboard
Copied
you're welcome.