<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=9029&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-10-30T17:15:56+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=9029&amp;mode</id>
<entry>
<author><name><![CDATA[morq]]></name></author>
<updated>2014-10-30T17:15:56+01:00</updated>
<published>2014-10-30T17:15:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9029&amp;p=101583#p101583</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9029&amp;p=101583#p101583"/>
<title type="html"><![CDATA[konwersja double -&gt; char]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9029&amp;p=101583#p101583"><![CDATA[
Problem występuje przy wyświetleniu tego typu:<br /><br />[syntax=c]char tab&#91;100&#93;;<br />double temp = 5421.5467;<br />sprintf(tab, &quot;%9.4f&quot;, temp);<br /><br />uart_puts(tab);   //W celu sprawdzenia zawartości tablicy[/syntax]<br /><br />w terminalu wyświetla mi się znak '?' nie wiem jak sobie z tym poradzić. Dla przykładu gdy podaje zamiast typu double:[syntax=c]char tab&#91;100&#93;;<br />uint32_t temp = 1000000000;<br />sprintf(tab, &quot;%ld&quot;, temp);<br /><br />uart_puts(tab);   //W celu sprawdzenia zawartości tablicy[/syntax] <br /><br />W terminalu wyświetla się prawidłowo gdzie tkwi błąd??<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=5940">morq</a> — 30 paź 2014, o 17:15</p><hr />
]]></content>
</entry>
</feed>