RE: Problems with MOD

2001-04-29 Thread Sinisa Milivojevic
Braxton Robbason writes: > isn't this the expected behavior? > > (1008306000-988344000)/86400 = 231.04 > > select mod(231.04,7); > 0 > > 231.04 mod 7 is .04, rounded down to 0. 7*33=231 > > the mod function rounds the result - that's expected, right? Other than that > I don't see what the prob

RE: Problems with MOD

2001-04-28 Thread Braxton Robbason
riginal Message- From: Sinisa Milivojevic [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 7:38 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Problems with MOD Roger Ramirez writes: > Why do I get the following results? > > mysql> select (1008306000-988344000)

Re: Problems with MOD

2001-04-28 Thread Sinisa Milivojevic
Roger Ramirez writes: > Why do I get the following results? > > mysql> select (1008306000-988344000)/86400/7, > mod((1008306000-988344000)/86400,7.); > ++-- > + > | (1008306000-988344000)/86400/7 | mod((1008306000-9883440

Problems with MOD

2001-04-27 Thread Roger Ramirez
Why do I get the following results? mysql> select (1008306000-988344000)/86400/7, mod((1008306000-988344000)/86400,7.); ++-- + | (1008306000-988344000)/86400/7 | mod((1008306000-988344000)/86400,7.) | +---