[Implemented] MOD?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] MOD?

Post by BackupUser »

Restored from previous forum. Originally posted by DarkUni.

Am I missing the MOD command? I.E.

frame=(frame + 1) MOD 10

Thanks! If I didn't miss it, please add it to my request list :)

Shane R. Monroe
Dark Unicorn Productions

(Implemented as '%')
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 Rings.

of course, and XOR and a lot of other binary operators.
But you can still use Inlineasm.

Getting better with a little help from my friends....thx Siggi
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 fred.

XOR will be added in the next release. About MOD, there is one version in the MathExtras library from El_Choni.


Edited by - fred on 30 January 2002 09:20:01
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 DarkUni.

WHOA! There is no NOT? Man, we need these things Fred ... I know 'it all compiles the same', but hook us up. :)

Shane R. Monroe
Dark Unicorn Productions
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 MrVainSCL.
XOR will be added in the next release. About MOD, there is one version in the MathExtras library from El_Choni.
Nice! About the MOD command i would like to see it as STANDARD command INCLUDED in PureBasic... Fred, ofcourse we could use userlibs like the MathExtraLib but i think commands like MOD, XOR i.e. should be standard in every language without the use of 3rd part libs... please think about it... thanks!


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
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 redacid.

I still really need "then" (if...then... instead of if...:...:endif)

Also "elseif".

regards,
Redacid
---
Only Amiga makes it possible!
Post Reply