<?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[Rounding floats to the nearest 0.5 in PD Extended]]></title><description><![CDATA[<p>Does anyone know how I would go about rounding a float to the nearest 0.5 (for example 10.4 would become 10.5, and 32.6 would become 32.5,  and 101.9 would become 102 etc). I understand how to round floats / convert them into whole integers but cannot find a solution to rounding to the nearest 0.5 float.</p>
<p>Any help will be greatly appreciated!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11174/rounding-floats-to-the-nearest-0-5-in-pd-extended</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 09:54:39 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/11174.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Dec 2017 13:32:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rounding floats to the nearest 0.5 in PD Extended on Tue, 19 Dec 2017 13:33:19 GMT]]></title><description><![CDATA[<p>Does anyone know how I would go about rounding a float to the nearest 0.5 (for example 10.4 would become 10.5, and 32.6 would become 32.5,  and 101.9 would become 102 etc). I understand how to round floats / convert them into whole integers but cannot find a solution to rounding to the nearest 0.5 float.</p>
<p>Any help will be greatly appreciated!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11174/rounding-floats-to-the-nearest-0-5-in-pd-extended</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11174/rounding-floats-to-the-nearest-0-5-in-pd-extended</guid><dc:creator><![CDATA[BenJackson]]></dc:creator><pubDate>Tue, 19 Dec 2017 13:33:19 GMT</pubDate></item><item><title><![CDATA[Reply to Rounding floats to the nearest 0.5 in PD Extended on Tue, 19 Dec 2017 16:28:39 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/benjackson">@BenJackson</a> The patch below will do it, but I bet there is an object already in extended..... or a simpler method!<br />
There is.... <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smile.png" title="smile" alt=":smile:" /> ......... [list-round 0.5]<br />
As you don't need to deal with lists you can extract its essential juices......</p>
<p><img src="/uploads/files/1513700763285-capture1.jpg" alt="Capture1.JPG" class="img-responsive img-markdown" /></p>
<p>If you need to tweek the rounding thresholds......<br />
<a href="/uploads/files/1513698690021-round_half.pd">round_half.pd</a></p>
<p><img src="/uploads/files/1513698856703-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11174/rounding-floats-to-the-nearest-0-5-in-pd-extended/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11174/rounding-floats-to-the-nearest-0-5-in-pd-extended/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Tue, 19 Dec 2017 16:28:39 GMT</pubDate></item><item><title><![CDATA[Reply to Rounding floats to the nearest 0.5 in PD Extended on Tue, 19 Dec 2017 23:07:21 GMT]]></title><description><![CDATA[<p>propably the same but without expr:</p>
<p>[* 2]<br />
|<br />
[+ 0.5]<br />
|<br />
[i ]<br />
|<br />
[/ 2|</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11174/rounding-floats-to-the-nearest-0-5-in-pd-extended/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11174/rounding-floats-to-the-nearest-0-5-in-pd-extended/3</guid><dc:creator><![CDATA[Johnny Mauser]]></dc:creator><pubDate>Tue, 19 Dec 2017 23:07:21 GMT</pubDate></item></channel></rss>