Pelles C forum

C language => Beginner questions => Topic started by: Alessio on September 12, 2007, 11:47:43 PM

Title: 'double' question
Post by: 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.
Title: Re: 'double' question
Post by: JohnF on September 13, 2007, 07:37:56 AM
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