try:<br><br>[* 1000000]<br>|<br>[+ 0.5]<br>|<br>[int]<br><br>what that does, is convert the 6 decimal place number into an integer, then you add 0.5 so that the rounding goes to the nearest integer, and then you use [int] to chop off any remaining overflow.<br>
<br><br><br><div class="gmail_quote">On Mon, Apr 12, 2010 at 2:07 AM, duncan speakman <span dir="ltr">&lt;<a href="mailto:duncan.kleindesign@gmail.com">duncan.kleindesign@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hi,<br>
i&#39;m trying to use the gps object in Pd as part of an RjDj scene and<br>
their forum is down at the moment so i thought i&#39;d look for help<br>
here...<br>
<br>
so pd has a limit on the size of numbers it can use and i&#39;m looking<br>
for a simple way to break them down, (as i&#39;m using RjDj i have to use<br>
the vanilla pd so no extra object fun).<br>
The GPS object apparently sends out numbers to 6 decimal places, (e.g.<br>
51.430023) which keeps causing problems in other parts of the patch.<br>
I have tried removing the integer before the point and multiplying by<br>
10000 to give me something manageable. In the above example I would<br>
expect to get 4300.23 but instead i get something like 4300.23XXXX,<br>
where are these extra numbers coming from?<br>
Can anyone suggest a better way to deal with this data?<br>
<br>
regards<br>
<br>
duncan<br>
<font color="#888888"><br>
--<br>
<a href="http://duncanspeakman.net" target="_blank">http://duncanspeakman.net</a><br>
<a href="http://subtlemob.com" target="_blank">http://subtlemob.com</a><br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</font></blockquote></div><br>