[Implemented] Doubles

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
AndyX
User
User
Posts: 12
Joined: Wed May 04, 2005 6:40 pm
Location: Austria

[Implemented] Doubles

Post by AndyX »

Hi,

what I really miss in PureBasic are Doubles! I come form VisualBasic and I really need Doubles...

Plz include them in PB... :)

Greetz,
AndyX
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

This has been requested so many times... And every time I agree we need doubles.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

As I do ;)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

When do you think you'll have doubles ready ?
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Fred wrote:As I do ;)
:mrgreen:
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

For doubles was asked before - more than 3 years ago :lol::

viewtopic.php?t=3078&highlight=doubles

...seems as if doubles could come with PB 3.0
oops :wink:
%1>>1+1*1/1-1!1|1&1<<$1=1
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

I should delete such compromizing threads :twisted:
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

Yeah. It deserves a DOUBLE deletion. :twisted:
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

:lol:
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

:lol:

...or perhaps a QUAD-time-deletion...
%1>>1+1*1/1-1!1|1&1<<$1=1
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Ah screw it just use a time machine and go into the future to get the latest and greatest PB 11.0!!!
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Well...let's keep this thread on top, so Fred can't forget it this time :mrgreen:
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Tss :lol:
Escobar
User
User
Posts: 17
Joined: Tue Aug 05, 2003 5:54 pm

Post by Escobar »

Hmm... I'm not sure if this is right but wouldn't it be possible to use inline assembler to define datatypes like double?
I went to

http://www.flatassembler.net

for pure fun (got to love that word 8) ) to see if they did any OpenGL programming and I found converted header-files for OGL. In that header file (gl.inc) they declared datatypes like this:

Code: Select all

; Datatypes


			GLenum		equ dd
			GLboolean	equ db
			GLbitfield	equ dd
			;GLvoid
			GLbyte		equ db
			GLshort 	equ dw
			GLint		equ dd
			GLubyte 	equ db
			GLushort	equ dw
			GLuint		equ dd
			GLsizei 	equ dd
			GLfloat 	equ dd
			GLclampf	equ dd
			GLdouble	equ dq  ;LOOK DOUBLES!!!
			GLclampd	equ dq  ;SAME HERE!!!

So, if one use inline asm. that should be possible right? And therefore you should be able to use commands like glOrtho() in OGL that require double.
Just a thought...
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Berikco wrote:Well...let's keep this thread on top, so Fred can't forget it this time :mrgreen:
Well done :twisted:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply