MOD operator in <3.80

Just starting out? Need help? Post your questions and find answers here.
Seldon
Enthusiast
Enthusiast
Posts: 405
Joined: Fri Aug 22, 2003 7:12 am
Location: Italia

MOD operator in <3.80

Post by Seldon »

Hi, I've heared new 3.80 version will have the module operator (%). In the meanwhile, since I need to use it, how can I do ? I'm thinking to use assembly, is that realiable ? Thank you.
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

It is already released

viewtopic.php?t=7771
Mowen
User
User
Posts: 48
Joined: Tue Oct 07, 2003 1:04 pm
Location: Belgium

Modulo

Post by Mowen »

For the previous versions you can use this:

Code: Select all

Procedure.l Mod(nb1.l, nb2.l)
   ProcedureReturn nb1 - ((nb1 / nb2) * nb2)
EndProcedure
Post Reply