[PD-dev] [ pure-data-Patches-2952880 ] a partial float fix

SourceForge.net noreply at sourceforge.net
Tue Feb 16 17:36:29 CET 2010


Patches item #2952880, was opened at 2010-02-16 11:33
Message generated for change (Settings changed) made by mrpeach
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2952880&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
>Group: bugfix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Martin Peach (mrpeach)
Assigned to: Miller Puckette (millerpuckette)
Summary: a partial float fix

Initial Comment:
Pd currently doesn't store floats to their full precision because atom_string uses the %g format specifier to print them into the binbuf.
As a result 24-bit numbers lose precision.
This patch changes the format specifier to %f and also adds a routine to chop off trailing zeros and the decimal point if nothing is to the right of it.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2952880&group_id=55736




More information about the Pd-dev mailing list