News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

'double' question

Started by Alessio, September 12, 2007, 11:47:43 PM

Previous topic - Next topic

Alessio

Hi,

I've a number like 1.22713333333335E-02.

How can I store it completely ?
And how I can show it with printf ?

thanks.

JohnF

Quote from: Alessio on September 12, 2007, 11:47:43 PM
Hi,

I've a number like 1.22713333333335E-02.

How can I store it completely ?
And how I can show it with printf ?

thanks.

Store it? You mean include it in your code?

   double d = 1.22713333333335E-02;

RE: printf
Look up the printf "Formats for output"

John