Re: scientific notation

new topic     » goto parent     » topic index » view thread      » older message » newer message

Allen Ashby wrote:
> 
> I am working on a windows program that displays results of a calculation in
> 
> a label an some of the results are to large or to small to display the entire
> string in the label.
> 
> Can anyone help me with a routine that will convert the results into
> scientific
> notation before diplaying them (ie. 0.00000000000001 = 1.0 x 10<sup>-14</sup>.
> 
> Thank you
> Allen

printf(1, "%e", 0.00000000000001)

Regards, Alexander Toresson

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu