Floats

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Manolo.

In 2.95 no fixed the floats problem

Manolo
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Float have limits, it's not a Purebasic bug. Try in C or anything, it's exactly the same.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

remember floats (in this version) are singles (doubleword-size).
fred plans to implement doubles (quadword-size) with more precision.
(hope so fred, correct me if i am wrong).
And singles never have a accurated precision.
If you don't have more than 2-3 numbers right from the dot and no more than 5 or 6 left from the dot, use DoubleIntegers(LONGS = Doublewordsize) and build your own dot.


Getting better with a little help from my friends....thx Siggi
Post Reply