17.09.2011, 01:18
@payton326: yes. 10^10 = a 1 with 10 zeros (10 digits): 10,000,000,000
so if you have 2e10, then its 2 * 10^10, thats 20,000,000,000.
@DRIFT_HUNTER: hm. try to see the "e" as part of "movE (the comma)"...
that notation is hard to read, you dont "see" how long a number is..
OH, its like the strlen()! so if you got any numer like $ "13337" how long is it (after the first char "1")?
strlen("13337") == 5, subtract one from that stlen for the "1", add the dot:
"1."
and then use the 4 (strlen of "3337") and put it behind the "1." (including some more detail like the "333" after the 1.:
"1.333e4", same as
"0.1333e5", same as
"0.01333e6", etc
so if you have 2e10, then its 2 * 10^10, thats 20,000,000,000.
@DRIFT_HUNTER: hm. try to see the "e" as part of "movE (the comma)"...
that notation is hard to read, you dont "see" how long a number is..
OH, its like the strlen()! so if you got any numer like $ "13337" how long is it (after the first char "1")?
strlen("13337") == 5, subtract one from that stlen for the "1", add the dot:
"1."
and then use the 4 (strlen of "3337") and put it behind the "1." (including some more detail like the "333" after the 1.:
"1.333e4", same as
"0.1333e5", same as
"0.01333e6", etc