negative vibes (v2)
Displaying 1-5 of 5 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
ShadowDrak

How do you represent negative constants in verge2? every time i try -1*6 (or something similar i get an unknown token. ive tried parenthesis and i even tried
(0-1)*6 but to no avail... i can't get it to work. maybe im overlooking something.

i thought of a really long way to do it. but i think i should be able to do it properly.

thanks in advance



Posted on 2001-08-10 09:56:57

grenideer

What you can do, for -16 for example, is write (0-16). But verge doesn't really support negatives properly.



Posted on 2001-08-10 13:56:54

rpgking

In Verge2.6, numbers like -16 would make perfect sense to the compiler. ...but not too many people use Verge2.6.



Out of clutter, find simplicity. -Einstein

Posted on 2001-08-10 17:44:28

andy

v2k's VCC is virtually identical to v2.6's. It'll handle the unary minus operator as well.



"Ignorance is its own reward" -- Proverb

Posted on 2001-08-11 00:19:11

ShadowDrak

I've just decided to use a globabl variable set to -1 as my negative for now... I don't really want to convert my source code... I think i'll wait till my needs become more than the official release can handle...



Posted on 2001-08-12 17:16:02


Displaying 1-5 of 5 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.