[PD] sendOSC: handling big numbers

brendan bstine at telus.net
Mon May 9 23:54:12 CEST 2005


Mathieu Bouchard wrote:

>
> On Sat, 7 May 2005, brendan wrote:
>
>>>> where the number box complains: "no method for '3e+006'
>>>
>>> You are absolutely correct. Just tried it myself, as I should have 
>>> before replying to your post. I assumed the confusion was about the 
>>> notation, not the object. Looks like a real live problem to me!
>>
>> The OSC Specification supports 64bit numbers, but they require an "h" 
>> type tag to be properly defined.  OSCx might not support the 'h' tag, 
>> you would have ask the developer.
>
>
> What's the link between 3e+006 and 64-bit numbers?
>
> 3000000 is representable exactly as both a float32 and an int32 
> number. For int32 the upper bound is about two billion, and for 
> float32 it's much higher.
>
>  ,-o---------o---------o---------o-. ,---. irc.freenode.net #dataflow |
>  | The Diagram is the Program (TM) | | ,-o-------------o--------------o-.
>  `-o--------------o--------------o-' | | Mathieu Bouchard (Montréal QC) |
>    | téléphone: +1.514.383.3801  `---' `-o-- http://artengine.ca/matju -'
>
>------------------------------------------------------------------------
>
>_______________________________________________
>PD-list at iem.at mailing list
>UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>  
>

I just said the first thing I thought of, I'll take more care next 
time.  the upper limit for floats is a lot higher than I thought!

-brendan




More information about the Pd-list mailing list