[PD] minus; bug or feature?

IOhannes m zmoelnig zmoelnig at iem.kug.ac.at
Mon Apr 15 16:09:39 CEST 2002


Andre Schmidt wrote:
> [win32 pd0.35-17]

ok. hit me if i am very wrong, but i guess this is not related to the 
pd-release.... (my assumptions sounds arrogant to me, though)


> when i calc with object "+" (like 54 + 10 i get 64) 
> but when i calc with object "-" (like 54 - 10 i get -44)

well, this looks to me, like you were not calculating "54-10" but "10-54".
The order does not matter when adding (a+b=b+a), but it does matter when 
subtracting (a-b != b-a)
How does your patch look ?

The following calculates 44 for me::
=---   =---
|54(   |10(
=---   =---
|      |
=------=
| -    |
=-------
|
=-----\
|44    |
=-------


>
> so the calc is OK, but it puts a "minus"(-) in front of the number ?!?!
> if this a feature; how can i "take" that minus away ???
eg by multiplying with "-1" or by reversing the order....

> 
>  
> 
> thnx
> 
> -andre 
> 






More information about the Pd-list mailing list