Modulus operator or function?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cfriedel.

Hi. Wondering if there was a way to do a modulus function in PB? If anyone could help me it would be appreciated. Checked the docs and couldn't find one so far. Thanks.

Cliff
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by wavemaker.

Hi,

I've updated the MathExtras library to include that function:

IMod(dividend,divisor)

I've sent it to Paul and I guess he could post it tomorrow at http://www.reelmediaproductions.com/pb, but if you are in a hurry I can send you the library.

I hope this was what you were looking for.

Bye,

Juan Calderón Alonso
Registered user
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cfriedel.

Sounds like a winner. I will have to check out that library. Thanks.

Cliff
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

The updated 'MathExtras' library has been posted at the above link...
Thanks Wavemaker !!
Post Reply