[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] mod



The problem is that -0 is not the same as 0... there are some problems in one of my classes where, on PPC, an error is thrown, and it looks like this is the problem. Brian Willkie figured out a temporary fix, but the same expression should probably return the same thing on intel and PPC.

I'll take a look at the mod method later and see if I can track it down. Just wanted to make sure this seems to be a PPC problem before I dig in.

Thanks,

Josh

On Dec 23, 2007, at 9:25 AM, Julian Rohrhuber wrote:

Hi all...

can any other Mac PPC users confirm this problem? Does the code below return 0 or -0 for you?

(60.0 % 12)


confirmed - it seems strange, but on the other hand: why is is a problem?

(60.0 % 12) < 0 // false


Thanks,

Josh

******************************************

/* Joshua D. Parmenter

<http://www.realizedsound.net/josh/>http://www.realizedsound.net/ josh/


"Every composer - at all times and in all cases - gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/


_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users


--





.
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/