Hi
I'm trying to send some big float numbers into Puredata through OSC. But numbers seem to be rounded up above 16777216, that's 2 to the 24.
Numbers are really rounded, not just printed with less precision.
Has it something to do with OSC, or with mrpeach objects, or with Puredata itself?
Alvaro
On Fri, 6 Nov 2009, alvaro wrote:
I'm trying to send some big float numbers into Puredata through OSC. But numbers seem to be rounded up above 16777216, that's 2 to the 24. Numbers are really rounded, not just printed with less precision. Has it something to do with OSC, or with mrpeach objects, or with Puredata itself?
Anything that uses the standard float32 numbers will run into this problem. This includes 64-bit versions of Pd, which pads each float32 number with 32 unused bits so that it makes a total of 64 bits.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
At the moment Pd only uses 32-bit floats, which lose accuracy at high values because the mantissa is only 24 bits. OSC supports 64-bit floats (doubles) but the Pd OSC objects don't, because Pd can't handle them.
Martin
From: alvaro@berlin.de To: pd-list@iem.at Date: Fri, 6 Nov 2009 23:01:46 +0100 Subject: [PD] float accuracy and OSC
Hi
I'm trying to send some big float numbers into Puredata through OSC. But numbers seem to be rounded up above 16777216, that's 2 to the 24.
Numbers are really rounded, not just printed with less precision.
Has it something to do with OSC, or with mrpeach objects, or with Puredata itself?
Alvaro
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list