Printing of double (64bit)

Let us know what you think about the chipKIT, and what can be done to make it better!
Post Reply
Posts: 193
Joined: Sun May 22, 2011 9:37 pm

Printing of double (64bit)

Post by pito » Sat Jan 11, 2014 2:32 pm

The same with double (it is 64bit float). It prints as 32bit float today.
Would be great to have it in Print class.

This is a workaround for example:

Code: Select all

char buf[25];
double fff = 1.234567890123456e-23;
sprintf(buf,"%1.15e", fff);

Posts: 69
Joined: Fri Oct 11, 2013 9:19 pm

Re: Printing of double (64bit)

Post by kaaasap » Fri Jan 24, 2014 8:39 pm

does this help?


use the int for precision. Example: 4 gives four numbers. 3.1248752 prints as 3.124

Post Reply