I saw this on the bug list first and sent a reply, but for the archives I'll copy it here, too.
REMAINDER() calls libm's remainder(3) or remainderl(3), infix % calls fmod(3) or fmodl(3). remainder(3) is defined to round the quotient to the nearest int (always using round-to-even, notsithstanding the rounding mode), fmod(3) is defined to trunc(3)ate the quotient. So the result of x%y will always be in the range [0,x] and the results of remainder(x,y) will be in the range (-y/2,y/2]. -JimC -- James Cloos <[email protected]> OpenPGP: 0x997A9F17ED7DAEA6 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016 http://www.asterisk.org/community/astricon-user-conference New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
