<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem printing doubles in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-printing-doubles/m-p/247943#M3042</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
%d is for printing integers, please use %g or %f for that. You can even specify the number of decimals (2 in this example): %5.2f&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
    <pubDate>Mon, 12 Aug 2019 11:44:27 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2019-08-12T11:44:27Z</dc:date>
    <item>
      <title>Problem printing doubles</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-printing-doubles/m-p/247942#M3041</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I’m printing variables using acapi_writereport..&lt;BR /&gt;Today I just couldn’t print doubles. Whenever I print a double (using %d), it just gives me huge random numbers.. not even doubles (without . In the number)&lt;BR /&gt;For testint I even tried to set double t=0.1 and then to print it, it was still a huge number.. it used to be fine so all I can guess is to delete cache files/refresh things or something like this..&lt;BR /&gt;&lt;BR /&gt;Thanks..&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:19:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-printing-doubles/m-p/247942#M3041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-29T08:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem printing doubles</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-printing-doubles/m-p/247943#M3042</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
%d is for printing integers, please use %g or %f for that. You can even specify the number of decimals (2 in this example): %5.2f&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Mon, 12 Aug 2019 11:44:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-printing-doubles/m-p/247943#M3042</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2019-08-12T11:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem printing doubles</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-printing-doubles/m-p/247944#M3043</link>
      <description>Thanks.. Is there a document that sums those things up? Maybe a guide on the best way to debug?</description>
      <pubDate>Mon, 12 Aug 2019 17:46:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-printing-doubles/m-p/247944#M3043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-12T17:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem printing doubles</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Problem-printing-doubles/m-p/247945#M3044</link>
      <description>&lt;BLOCKQUOTE&gt;Tomer1 wrote:&lt;BR /&gt;
Thanks.. Is there a document that sums those things up? Maybe a guide on the best way to debug?
&lt;/BLOCKQUOTE&gt;
just do a web search for "printf format"&lt;BR /&gt;
&lt;A href="https://en.wikipedia.org/wiki/Printf_format_string" target="_blank"&gt;https://en.wikipedia.org/wiki/Printf_format_string&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.cplusplus.com/reference/cstdio/printf/" target="_blank"&gt;http://www.cplusplus.com/reference/cstdio/printf/&lt;/A&gt;</description>
      <pubDate>Wed, 14 Aug 2019 09:22:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Problem-printing-doubles/m-p/247945#M3044</guid>
      <dc:creator>Erenford</dc:creator>
      <dc:date>2019-08-14T09:22:47Z</dc:date>
    </item>
  </channel>
</rss>

