<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem: double ohne nachkommastellen]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>Ich habe folgendes Problem:</p>
<pre><code>ppm = (bpm * ppb) / 60 / 1000;
</code></pre>
<p>ppm ist ein double (float hab ich auch schon probiert)<br />
bpm und ppb sind integer<br />
bpm = 120 und ppb = 50</p>
<p>so, nun passiert bei mir folgendes:<br />
wenn ich die rechnung laufen lasse, erhalte ich für ppm = 0 obwohl ppm = 0.1 sein sollte, wenn ich ppb auf 500 erhöhe, erhalte ich 1, was ja auch stimmt...</p>
<p>hat irgendwer eine idee, was da schief läuft? danke schonmal im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/208159/problem-double-ohne-nachkommastellen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 13:44:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/208159.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Mar 2008 14:06:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem: double ohne nachkommastellen on Sat, 15 Mar 2008 14:06:48 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>Ich habe folgendes Problem:</p>
<pre><code>ppm = (bpm * ppb) / 60 / 1000;
</code></pre>
<p>ppm ist ein double (float hab ich auch schon probiert)<br />
bpm und ppb sind integer<br />
bpm = 120 und ppb = 50</p>
<p>so, nun passiert bei mir folgendes:<br />
wenn ich die rechnung laufen lasse, erhalte ich für ppm = 0 obwohl ppm = 0.1 sein sollte, wenn ich ppb auf 500 erhöhe, erhalte ich 1, was ja auch stimmt...</p>
<p>hat irgendwer eine idee, was da schief läuft? danke schonmal im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1474812</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1474812</guid><dc:creator><![CDATA[BurnerPat]]></dc:creator><pubDate>Sat, 15 Mar 2008 14:06:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: double ohne nachkommastellen on Sat, 15 Mar 2008 14:28:25 GMT]]></title><description><![CDATA[<p>BurnerPat schrieb:</p>
<blockquote>
<pre><code>ppm = (bpm * ppb) / 60.0d / 1000.0d;
</code></pre>
<p>Probiers mal so.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1474822</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1474822</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sat, 15 Mar 2008 14:28:25 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: double ohne nachkommastellen on Sat, 15 Mar 2008 14:50:25 GMT]]></title><description><![CDATA[<p>aber ohne 'd' bei den Zahlen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1474833</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1474833</guid><dc:creator><![CDATA[~double]]></dc:creator><pubDate>Sat, 15 Mar 2008 14:50:25 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: double ohne nachkommastellen on Sat, 15 Mar 2008 15:15:22 GMT]]></title><description><![CDATA[<p>hat funktioniert, danke für die schnelle hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1474849</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1474849</guid><dc:creator><![CDATA[BurnerPat]]></dc:creator><pubDate>Sat, 15 Mar 2008 15:15:22 GMT</pubDate></item></channel></rss>