Re: [PD] PD Float accuracy

2008-11-07 Thread errordeveloper
On Thu, Nov 06, 2008 at 10:50:51PM +, Mark Sexton wrote: Hi I need PD to make simple but accurate calculations for a sonification project. However there seems to be a problem working accurately with floats that have 7 or more digits in total (before or after the decimal point). PD

Re: [PD] PD Float accuracy

2008-11-07 Thread IOhannes m zmoelnig
Mark Sexton wrote: Hi I need PD to make simple but accurate calculations for a sonification project. However there seems to be a problem working accurately with floats that have 7 or more digits in total (before or after the decimal point). PD always seem to round the figure to 6 digits

Re: [PD] PD Float accuracy

2008-11-07 Thread Roman Haefeli
On Fri, 2008-11-07 at 09:45 +0100, IOhannes m zmoelnig wrote: Mark Sexton wrote: Hi I need PD to make simple but accurate calculations for a sonification project. However there seems to be a problem working accurately with floats that have 7 or more digits in total (before or after the

Re: [PD] PD Float accuracy

2008-11-07 Thread errordeveloper
On Fri, Nov 07, 2008 at 09:45:32AM +0100, IOhannes m zmoelnig wrote: Mark Sexton wrote: Hi I need PD to make simple but accurate calculations for a sonification project. However there seems to be a problem working accurately with floats that have 7 or more digits in total (before or

Re: [PD] PD Float accuracy

2008-11-07 Thread IOhannes m zmoelnig
Simon Wise wrote: On 7 Nov 2008, at 5:53 PM, [EMAIL PROTECTED] wrote: actually i have thought if pd could be ported to use double precision? may be optionaly so if your machine is meant to be fast enough then you opt doubles .. is it quite doable? what is the new situation with 64-bit

Re: [PD] PD Float accuracy

2008-11-07 Thread IOhannes m zmoelnig
[EMAIL PROTECTED] wrote: On Fri, Nov 07, 2008 at 09:45:32AM +0100, IOhannes m zmoelnig wrote: Mark Sexton wrote: Hi I need PD to make simple but accurate calculations for a sonification project. However there seems to be a problem working accurately with floats that have 7 or more digits

Re: [PD] PD Float accuracy

2008-11-07 Thread Simon Wise
On 7 Nov 2008, at 5:53 PM, [EMAIL PROTECTED] wrote: actually i have thought if pd could be ported to use double precision? may be optionaly so if your machine is meant to be fast enough then you opt doubles .. is it quite doable? what is the new situation with 64-bit compatible pd in

Re: [PD] PD Float accuracy

2008-11-07 Thread IOhannes m zmoelnig
IOhannes m zmoelnig wrote: Simon Wise wrote: On 7 Nov 2008, at 5:53 PM, [EMAIL PROTECTED] wrote: actually i have thought if pd could be ported to use double precision? may be optionaly so if your machine is meant to be fast enough then you opt doubles .. is it quite doable? what is the

Re: [PD] PD Float accuracy

2008-11-07 Thread Nicholas Mariette
I've had the 6-digit problem trying to print UTM position coordinates out of Pd. If you know the range of your numbers, there are some ugly hacks that provide a limited solution. Eg, for 1234.5678 you can pass the number through [int] and then subtract that from the original number to get

Re: [PD] PD Float accuracy

2008-11-07 Thread errordeveloper
On Fri, Nov 07, 2008 at 10:21:19AM +0100, IOhannes m zmoelnig wrote: there has been quite some code added to Pd-0.42 in preperation to make single/double precision a compile-time option. that's the way forward ;_) i think the only major thing that is still missing for a fully functional

[PD] PD Float accuracy

2008-11-06 Thread Mark Sexton
Hi I need PD to make simple but accurate calculations for a sonification project. However there seems to be a problem working accurately with floats that have 7 or more digits in total (before or after the decimal point). PD always seem to round the figure to 6 digits whether in a calculation,