Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] modulus and floats

Date2007-05-27 17:10
FromMichael Gogins
SubjectRe: [Cs-dev] modulus and floats
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

Date2007-05-27 20:29
From"Oeyvind Brandtsegg"
SubjectRe: [Cs-dev] modulus and floats
AttachmentsNone