[Implemented] Scientific notation numbers

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

[Implemented] Scientific notation numbers

Post by Psychophanta »

Allow scientific notation numbers when 64, 80, 128 bit floats are allowed in PB.
Example:

var.f=0.436024071944526E-17
User avatar
geoff
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Apr 27, 2003 12:01 am
Location: Cornwall UK
Contact:

Post by geoff »

I hope that requests for 80 bit and 128 bit floats does not delay the introduction of 64 bit IEEE double floats.

I have done a lot of scientific computing over the years and have never found the need for more than 64 bits.

Don't forget the FPU only has 80 bit precision.

Can anyone explain why they need 80 or 128 bit floats?
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

geoff wrote:Can anyone explain why they need 80 or 128 bit floats?
Well, that's pretty simple. With 80 or 128bit floats you can map every long (and with that I mean the real longs, the one with 64bits :) ) to a float number. With only 64bit floats you can't do that.
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Post by Moonshine »

Certainly a good feature to have. But the 64-bit floats first. Please. :D.
Mark my words, when you least expect it, your uppance will come...
Post Reply