[PD] floats getting forced into int
martin.peach at sympatico.ca
Wed Feb 14 15:58:11 CET 2007
David Brynjar Franzson wrote:
> I am working on a project that sends OSC messages from PD, and for
> some reason, when dealing with message lists of mixed objects, such as
> [send /OSC/blah 0.0 1.0 1.0], PD turns the floating point numbers into
> int, but only when they represent whole numbers. Can anyone think of a
> work around where they stay as floating point, or is there some simple
> solution that I am missing (I can't be bothered to hack up an external
> just to solve this).
The simplest way is to add a very small number to your integers so they
don't get turned into floats.
I'm going to add some kind of type-forcing mechanism to [packOSC] as
soon as I can.
More information about the Pd-list