Mod

Share your advanced PureBasic knowledge/code with the community.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Mod

Post by BackupUser »

Code updated for 5.20+ (same as Mod())

Restored from previous forum. Originally posted by WolfgangS.

Hi !
i found this in PureBasic Ide.pb
It could be sometimes handy ...

MFG
:)WolfgangS

Code: Select all

Procedure MOD(a,b)                          
  ProcedureReturn a-a/b*b
EndProcedure
Last edited by fsw on Thu Aug 22, 2013 6:16 pm, edited 1 time in total.
Reason: Code updated for 5.20+
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 Berikco.

Yes i posted this on formum couple of weeks ago. :)
viewtopic.php?t=2115">http://forums.pur ... nny.zeb.be
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 WolfgangS.

D*mn !
too late :)

MFG
WolfgangS
Post Reply