[PD] numeric format--URGENT!!
Claude Heiland-Allen
claudiusmaximus at goto10.org
Wed Sep 20 00:44:12 CEST 2006
adrian goya wrote:
> Hi,
>
> Í'm building an interface for registering visitors to an expo. I'm on
> windows using 0.39.2-extended-test4 and the GUI is made with [gripd]....
> So, someone inserts his name, mail and phone number in 3 different
> textboxes in [gripd] and everything is [pack]ed together and inserted to
> a [textfile]. The problem is that the phone numbers get converted to
> scientific numeric format (eg: 0445554241424 = 4.4554e+011), so it´s of
> no use.
>
> How can I get the 0445554241424 (yes, that's a cellphone) to enter the
> textfile exactly as it is written in the textbox?
Pd stores numbers only with a limited precision, something like 5 or 6
decimal digits - but symbols are stored with any number of characters.
Use a symbol box, and [makefilename someprefix%s] before packing. Note:
this will not store exactly as the number is entered, but the prefix is
necessary otherwise it will be considered as a number on load, and then
lose precision....
Claude
More information about the Pd-list
mailing list