l****e 发帖数: 137 | 1 The default ouput of the exponential digit number is 3 in windows and 2 in
Linux/Unix. How can I reduce the exponential digits output in windows from 3
to 2 as the same in Linux/Unix.
Thanks a lot.
louwee |
t****t 发帖数: 6806 | 2 "Note that the number of exponent digits in the scientific notation produced
by %e, %E, %g and %G for numbers with the modulus of the exponent less than
100 is system-dependent: it may be three or less (zero-padded as necessary)
. In other words, 1.23 times ten to the 99th may be either ``1.23e99'' or ``
1.23e099''."
so i suggest you do sprintf and do a regexp replacement.
3
【在 l****e 的大作中提到】 : The default ouput of the exponential digit number is 3 in windows and 2 in : Linux/Unix. How can I reduce the exponential digits output in windows from 3 : to 2 as the same in Linux/Unix. : Thanks a lot. : louwee
|
q*****g 发帖数: 72 | 3 good point
huan qian
produced
than
necessary)
``
【在 t****t 的大作中提到】 : "Note that the number of exponent digits in the scientific notation produced : by %e, %E, %g and %G for numbers with the modulus of the exponent less than : 100 is system-dependent: it may be three or less (zero-padded as necessary) : . In other words, 1.23 times ten to the 99th may be either ``1.23e99'' or `` : 1.23e099''." : so i suggest you do sprintf and do a regexp replacement. : : 3
|
c********e 发帖数: 383 | 4 u see, he claims that he has done all below 60 quests and he has his own tho
ttbot database for them, guess what, i believe him to his toe hair. |
l****e 发帖数: 137 | 5 Thanks. I also notice this paragraph. But is there any way around other than
using regexp replacement?
produced
than
necessary)
``
【在 t****t 的大作中提到】 : "Note that the number of exponent digits in the scientific notation produced : by %e, %E, %g and %G for numbers with the modulus of the exponent less than : 100 is system-dependent: it may be three or less (zero-padded as necessary) : . In other words, 1.23 times ten to the 99th may be either ``1.23e99'' or `` : 1.23e099''." : so i suggest you do sprintf and do a regexp replacement. : : 3
|
l****e 发帖数: 137 | 6 what is going on here? I could not read your guys' minds. So tell me do you
have a way to specify the exponential digits?
thanks.
tho
【在 c********e 的大作中提到】 : u see, he claims that he has done all below 60 quests and he has his own tho : ttbot database for them, guess what, i believe him to his toe hair.
|
t****t 发帖数: 6806 | 7 keke, never mind those 2 bad eggs
regex replacement is what i can think, if you don't want to print fp
yourself
you
【在 l****e 的大作中提到】 : what is going on here? I could not read your guys' minds. So tell me do you : have a way to specify the exponential digits? : thanks. : : tho
|
p*u 发帖数: 2454 | 8 kao, it took me 2 minutes to figure out what bad eggs meant.
【在 t****t 的大作中提到】 : keke, never mind those 2 bad eggs : regex replacement is what i can think, if you don't want to print fp : yourself : : you
|