Will PB ever have unsigned types?

Everything else that doesn't fall into one of the other PB categories.
Justin
Addict
Addict
Posts: 956
Joined: Sat Apr 26, 2003 2:49 pm

Will PB ever have unsigned types?

Post by Justin »

i assumed they would come with PB4 :?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

except for bytes i must admit i haven't missed them much
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

we will probably add them for byte and word in a future release. Actually if you do only an 'ascii' program, you can use the 'c' type, which is an unsigned byte.
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Code: Select all

a.b= 128
Debug a
b.c= 128
Debug b
cool 8)
Thomas
Enthusiast
Enthusiast
Posts: 112
Joined: Sat Apr 26, 2003 8:45 pm

Post by Thomas »

32 and 64 bit unsigned would be useful too
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

as long as PB dont support UNSIGNED variables you can use this small trick... i needed this today in my acutal small project and finally i found a solution after a lot of experience...

a = -64
Debug a & 255
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Post Reply