See this code below, from Octave's Command Prompt:
>> log( 0.1 ) * 5e-8
ans = -0.00000011513
As can be seen, there are quite a few zeros ( 6 to be exact). I would like if the number is displayed as 1.1513e-7. Or, scientific notation, by default. How does one do that?
You can change the format of the ouput displayed by octave with the function format
,
eg format short e
forces short length exponential notation, which seems that is what you want.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.