<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: I create a double n=3.33333 how do I have that printed out on the serial port?</title>
		<link>http://forums.leaflabs.com/topic.php?id=9164</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:09:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=9164" rel="self" type="application/rss+xml" />

		<item>
			<title>josheeg on "I create a double n=3.33333 how do I have that printed out on the serial port?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9164#post-20316</link>
			<pubDate>Tue, 16 Oct 2012 20:03:25 +0000</pubDate>
			<dc:creator>josheeg</dc:creator>
			<guid isPermaLink="false">20316@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;It worked I did that.&#60;br /&#62;
example.&#60;br /&#62;
void setup() {&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;void loop() {&#60;br /&#62;
  SerialUSB.println(&#34;Hello World!&#34;);&#60;br /&#62;
  ufsum=12.04l;&#60;br /&#62;
  SerialUSB.println(ufsum,5);&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "I create a double n=3.33333 how do I have that printed out on the serial port?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9164#post-20285</link>
			<pubDate>Sat, 13 Oct 2012 13:13:43 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">20285@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;josheeg - have you looked in your distribution to find the file &#34;Print.cpp&#34;?&#60;/p&#62;
&#60;p&#62;Does that contain this code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;void Print::print(double n, int digits) {
    printFloat(n, digits);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If it does, then HardwareSerial has a version of &#60;code&#62;print&#60;/code&#62; which takes two parameters.&#60;br /&#62;
The first parameter is the double to be printed.&#60;br /&#62;
The second parameter is the number of digits after the decimal point, so set this value to be the number of decimal places you want to print.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>josheeg on "I create a double n=3.33333 how do I have that printed out on the serial port?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9164#post-20282</link>
			<pubDate>Fri, 12 Oct 2012 22:33:20 +0000</pubDate>
			<dc:creator>josheeg</dc:creator>
			<guid isPermaLink="false">20282@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;A second parameter? I looked where double was defined and still do not know what to modify to make it print further than 2 digits past the decimal.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "I create a double n=3.33333 how do I have that printed out on the serial port?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9164#post-20264</link>
			<pubDate>Thu, 11 Oct 2012 12:05:04 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">20264@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;josheeg - have a look in the file &#34;Print.cpp&#34;.&#60;br /&#62;
In my distribution, the function to print a double has the prototype:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;void Print::print(double n, int digits)&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;so if you have that version in your installation, try supplying a second parameter to set the number of digits.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>josheeg on "I create a double n=3.33333 how do I have that printed out on the serial port?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9164#post-20263</link>
			<pubDate>Thu, 11 Oct 2012 11:11:06 +0000</pubDate>
			<dc:creator>josheeg</dc:creator>
			<guid isPermaLink="false">20263@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The version of my maple ide is around &#34;maple-ide-0.0.9-linux64.tgz&#34; because I installed 64 bit ubuntu on my laptop and all sort of errors happen trying to get a new one and windows 7 on the other boot.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>josheeg on "I create a double n=3.33333 how do I have that printed out on the serial port?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9164#post-20262</link>
			<pubDate>Thu, 11 Oct 2012 11:07:23 +0000</pubDate>
			<dc:creator>josheeg</dc:creator>
			<guid isPermaLink="false">20262@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I learned some linear algebra from the manga guide to linear algebra and used the excel spread sheet tutorial sample data to guide me through it. So I was able to do that example on paper with a simple hand calculator the ones without all the functions. &#60;/p&#62;
&#60;p&#62;I have had the maple print to the terminal in linux Hello World.&#60;br /&#62;
Now I am trying to print a floating point doulble.&#60;br /&#62;
The number is 33.33333.&#60;br /&#62;
I get back 33.33 or 33.34 or something like that.&#60;br /&#62;
I looked in the documentation here:&#60;br /&#62;
&#60;a href=&#34;http://leaflabs.com/docs/lang/api/serialusb.html#lang-serialusb&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/lang/api/serialusb.html#lang-serialusb&#60;/a&#62;&#60;br /&#62;
It said this &#34;USBSerial::print(double n)&#60;/p&#62;
&#60;p&#62;    Print n, accurate to 2 digits after the decimal point.&#60;br /&#62;
&#34;&#60;/p&#62;
&#60;p&#62;how do I get it to print more after the decimal point?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "I create a double n=3.33333 how do I have that printed out on the serial port?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9164#post-20244</link>
			<pubDate>Tue, 09 Oct 2012 20:59:40 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">20244@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@josheeg - Have you taken mbolivar's advice?&#60;br /&#62;
&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=1979#post-11457&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=1979#post-11457&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "I create a double n=3.33333 how do I have that printed out on the serial port?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9164#post-20242</link>
			<pubDate>Tue, 09 Oct 2012 13:02:19 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">20242@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@josheeg,&#60;/p&#62;
&#60;p&#62;Please read the &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=994&#34;&#62;Guidelines for Posting&#60;/a&#62;.  For example &#34;use a short, descriptive title&#34; and &#34;the version of Maple IDE (e.g. &#34;0.0.11&#34;) you are using&#34;.&#60;/p&#62;
&#60;p&#62;If you describe what you have tried doing it would help.&#60;/p&#62;
&#60;p&#62;You mentioned the tutorial, but you did not say what worked and what did not work.&#60;/p&#62;
&#60;p&#62;A short piece of code or a pastbin link would be helpful.&#60;/p&#62;
&#60;p&#62;Rather than invoking &#34;Linear Discriminant Analysis&#34; can you phrase your question in a simpler way?  It is not clear to me what you asking and mentioning LDA and linear algebra does not help me interpret your question.&#60;/p&#62;
&#60;p&#62;For example, are you trying to print to a physical printer, printing to a file, printing to a terminal window, etc.?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>josheeg on "I create a double n=3.33333 how do I have that printed out on the serial port?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9164#post-20240</link>
			<pubDate>Tue, 09 Oct 2012 09:41:38 +0000</pubDate>
			<dc:creator>josheeg</dc:creator>
			<guid isPermaLink="false">20240@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I create a double n=3.33333 how do I have that printed out on the serial port?&#60;br /&#62;
I have a maple r5 running linux 64 bit ubuntu&#60;br /&#62;
I am fallowing the tutorial &#60;a href=&#34;http://people.revoledu.com/kardi/tutorial/LDA/index.html&#34; rel=&#34;nofollow&#34;&#62;http://people.revoledu.com/kardi/tutorial/LDA/index.html&#60;/a&#62;&#60;br /&#62;
and used the manga guide to linear algebra to figure parts out.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
