[Implemented] Modulo
[Implemented] Modulo
A function that I miss in purebasic is Modulo.
This would make it easier to change something for example every 5 levels.
I know that there are easy solutions to this problem. And I integrated one of them already. But it would still be cool if purebasic had this command!
This would make it easier to change something for example every 5 levels.
I know that there are easy solutions to this problem. And I integrated one of them already. But it would still be cool if purebasic had this command!
% % %
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
i still think i'd like a keyword like Mod() or Mod and Div() or Div and (whilte we're at it) i could do with a little ^ as well...


( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
- Enthusiast
- Posts: 731
- Joined: Wed Apr 21, 2004 7:12 pm
hate pow() want ^ hate % want mod()
okay, okay, stop shouting at me, i'm an old gfa user
okay, okay, stop shouting at me, i'm an old gfa user

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
dare to say that it aint a copycat
(actually, gfa predates vb, so
)
but yes, you are right, it's what we are used to, i guess...


but yes, you are right, it's what we are used to, i guess...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
I used GFA and then Blitz on an Amiga before going over to assembly language which was the only way to gain control of the machine. When I first got a PC with windows I found assembly language far too complicated and tried Blitz, which I found more suited to games than the applications which is what I wanted. I then tried PB and found it to be ideal, I could understand it and it was quite fast enough for most things. However I can't stop thinking of the previous languages and I am always typing "^" for a power and wondering why I then get an error, (likewise "strip" instead of "trim" etc.).
By the way my major want in PB is, as a lot of others want, greater precision maths, the higher the better
At the moment I use the Eval("") procedure by Tejon which is brilliant, but a bit cumbersome as you have to use strings. The results however cannot be faulted
I have great hopes for V4, but I seem to have waiting so long that I sometimes wonder if it's ever coming!

By the way my major want in PB is, as a lot of others want, greater precision maths, the higher the better

At the moment I use the Eval("") procedure by Tejon which is brilliant, but a bit cumbersome as you have to use strings. The results however cannot be faulted

I have great hopes for V4, but I seem to have waiting so long that I sometimes wonder if it's ever coming!

it's never going to be what everyone expects but i sneaked into fred's basement and it looked promising!MikeB wrote: I have great hopes for V4, but I seem to have waiting so long that I sometimes wonder if it's ever coming!![]()
viewtopic.php?p=121139#121139
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )