Page 1 of 1

[Implemented] Numeric var type: DOUBLE

Posted: Sat Jan 24, 2004 6:59 pm
by dell_jockey
Numeric var type: DOUBLE!

Posted: Sat Jan 24, 2004 7:44 pm
by El_Choni
Double? What's that? I think PureBasic single is enough... icon_clown.gif

Posted: Sat Jan 24, 2004 7:58 pm
by Kale

Posted: Sat Jan 24, 2004 8:43 pm
by dell_jockey
El_Choni wrote:Double? What's that? I think PureBasic single is enough... icon_clown.gif
My question puts me firmly outside the game programming community, I realise that.
I hope there's still a place left here for programmers that indulge in other interests... :)
For what I'm after, I need numeric variables that are much closer to what C has to offer, hence my request for a 'double'.

Kale: I wasn't aware of this thread, thanks for the pointer.

O.k., I've read that thread and saw that 1: my request is not the first one along this lines, and 2: there doesn't seem to be happening much in this department.

I don't feel bad for bringing the subject up again, because, if we stop asking for it, the topic will vanish from the 'to do' list.

Also, I'm aware of the FP64 library, which might solve my immediate needs. I'm looking into it right now.
Whatever I find out about FP64, I'm very surprised about PB not natively offering 64-bit floats.

I wish I had checked out PB better, before registering.... :(

Re: Numeric var type: DOUBLE

Posted: Sun Jan 25, 2004 12:01 am
by PB
> Numeric var type: DOUBLE!

Please read the FAQ: viewtopic.php?t=4876

Re: Numeric var type: DOUBLE

Posted: Sun Jan 25, 2004 10:55 am
by dell_jockey
PB wrote:> Numeric var type: DOUBLE!

Please read the FAQ: viewtopic.php?t=4876
Hi PB,

that thread was the first I checked before posting :) Indeed, for newbies it has an aweful lot of tips. Alas, I couldn't find anything that pertains to native 64-bit floats (i.e. doubles).

Re: Numeric var type: DOUBLE

Posted: Sun Jan 25, 2004 12:06 pm
by PB
> I couldn't find anything that pertains to native 64-bit floats (i.e. doubles)

From the FAQ:

How can I use strings larger than 64K, and numbers larger than longs?
Strings: viewtopic.php?p=45054
Numbers: Not possible, but planned for a future version of PureBasic.


Numbers larger than longs = doubles. ;)

Posted: Sun Jan 25, 2004 12:26 pm
by venom
are 80-bit floats planned?

Posted: Sun Jan 25, 2004 5:34 pm
by Kale
Doubles are planned for v4.0 of PureBASIC which can't be far off now! :D I personally cant wait especially because i've just come across a problem while trying to calculate file sizes in memory using bytes and long variables cant handle the numbers :?

I don't suppose Fred would like to comment on this thread?