I do agree on this, for back compatibility reasons, and also because I find the functionality of doing modulo with floats useful when creating various ramps and toggles with csound code. I did check % in python, and it also accepts floats. best Oeyvind 2007/5/27, Michael Gogins : > If the behavior of the % opcode has changed, I think it should be changed back. If coercion to integer is required, that can be done in other ways. > > Regards, > Mike > > -----Original Message----- > >From: jpff > >Sent: May 27, 2007 5:58 AM > >To: Developer discussions > >Cc: csound-devel@lists.sourceforge.net > >Subject: Re: [Cs-dev] modulus and floats > > > >I believe the modulus operation is defined over integers, so the > >arguments are coerced to integer before the operation is made. It is > >arguable that it should be the same as the C function fmod rather than > >the operator > > > >==John ffitch > > > >------------------------------------------------------------------------- > >This SF.net email is sponsored by DB2 Express > >Download DB2 Express C - the FREE version of DB2 express and take > >control of your XML. No limits. Just data. Click to get it now. > >http://sourceforge.net/powerbar/db2/ > >_______________________________________________ > >Csound-devel mailing list > >Csound-devel@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/csound-devel > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net