I want to be able to do:
double x;
SerialUSB.print(x);
and get more than 2 decimal places printed out. I've looked at the docs and there doesn't appear to be a way - have I missed anything?
Thanks,
Matt
I want to be able to do:
double x;
SerialUSB.print(x);
and get more than 2 decimal places printed out. I've looked at the docs and there doesn't appear to be a way - have I missed anything?
Thanks,
Matt
Use
SerialUSB.print(x,n);
to print n digits behind the comma.
Oh.
Could someone please update the documentation on http://leaflabs.com/docs/lang/api/serialusb.html to reflect this. Is the rest of the documentation this complete?
Thanks,
Matt
You must log in to post.