PDA

View Full Version : scientific notation format



hcrisp
07-02-2009, 07:12 AM
Is there a way to specify the format of a number like 1/204.8 in scientific notation, especially the exponent? What I want is this:



4.882813E-03


Instead, the best I can get is this (note the extra zero):



info, string(1/204.8, format='(E13.6)')
; <Expression> STRING = '4.882813E-003'


Any ideas?