Page 1 of 2

[Implemented] Doubles

Posted: Wed May 04, 2005 7:04 pm
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

Posted: Wed May 04, 2005 8:17 pm
by dracflamloc
This has been requested so many times... And every time I agree we need doubles.

Posted: Wed May 04, 2005 8:28 pm
by Fred
As I do ;)

Posted: Wed May 04, 2005 8:39 pm
by Polo
When do you think you'll have doubles ready ?

Posted: Wed May 04, 2005 8:41 pm
by Berikco
Fred wrote:As I do ;)
:mrgreen:

Posted: Wed May 04, 2005 10:37 pm
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:

Posted: Wed May 04, 2005 10:40 pm
by Fred
I should delete such compromizing threads :twisted:

Posted: Wed May 04, 2005 11:35 pm
by einander
Yeah. It deserves a DOUBLE deletion. :twisted:

Posted: Wed May 04, 2005 11:38 pm
by Fred
:lol:

Posted: Wed May 04, 2005 11:44 pm
by Froggerprogger
:lol:

...or perhaps a QUAD-time-deletion...

Posted: Thu May 05, 2005 12:42 am
by dracflamloc
Ah screw it just use a time machine and go into the future to get the latest and greatest PB 11.0!!!

Posted: Thu May 05, 2005 8:31 am
by Berikco
Well...let's keep this thread on top, so Fred can't forget it this time :mrgreen:

Posted: Thu May 05, 2005 12:04 pm
by Fred
Tss :lol:

Posted: Thu May 05, 2005 12:20 pm
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...

Posted: Thu May 05, 2005 2:00 pm
by Psychophanta
Berikco wrote:Well...let's keep this thread on top, so Fred can't forget it this time :mrgreen:
Well done :twisted: