mod operator

Post Reply
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

mod operator

Post by sourceuno »

Is there a mod arithmetic operator that returns the remainder of a division operation?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

mod operator

Post by mark »

User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

mod operator

Post by John »

There is also the fmod function in SQL you can use,

<$remainder=(fmod($x, $y))>
John Turnbull
Thunderstone Software
Post Reply