[Implemented] Flags EditorGadget and double float

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:

Post by Psychophanta »

Situations like mikew's one probably will be more and more common.

Road Runner said:
The FPU does everything in extended precision anyway, there is no speed difference.
And it's truth, so why not double precision and double extended, inclusively 128bit if choosing MMX or 3DNow compilation modes?
Even some programmers don't need, it would never be a surplus in PB.

And of course JoRo, i personally don't use EditorGadgets now.
If PB had able to manage unlimited string lenghts some problems would go away.
mikew
New User
New User
Posts: 2
Joined: Mon Oct 20, 2003 9:52 pm

Abolish single precison floats?

Post by mikew »

From my point of view, I would welcome the abolishment of single precision floats in favor of the double floats - to keep it simple... Does anyone need single precision? :wink:
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

YES!

I mean, NO!

I mean, do I?

Stop confusing me!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Karbon, if i remember finely, you made a PB-lib or a dll for big length float numbers...
So, come on, don't be shy, don't be confused and give your sincere opinion... :wink: :wink: :P
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Sooorry, I was wrong :oops:

It was an app by Siegfried Rings, called BigNum (including a dll: bignum.dll) which i found at Paul's site, and which allows to manage big floats numbers.


I don't know why, but I confused Karbon with Siegfried Rings. :oops:
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

Psychophanta wrote:I don't know why, but I confused Karbon with Siegfried Rings. :oops:
maybe i like eating Carbonara ?

also some good news on the BigNum. next week i got some free time and the lib will be updated and become free of use for the purebasic-users.watch out ......
SPAMINATOR NR.1
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Thanx, and it will be welcomed.
Please tell us where we can get it.
At least I will use it, i need it for my projects.

:D
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

double ints? yippie :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
geoff
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Apr 27, 2003 12:01 am
Location: Cornwall UK
Contact:

Post by geoff »

Karbon wrote: I don't think anyone is arguing that they're not needed - just that they're not needed for money calculations!
Yes they are.

How would you calculate compound interest at 7% pa on a sum of 1000 Euros for 217 days?
Or calculate annual equivalent rate on a 10 year loan with fixed repayment?
Or predict discounted cash flows for a business plan?

Many serious finance calculations use transcendental functions.

mikew wrote: From my point of view, I would welcome the abolishment of single precision floats in favor of the double floats - to keep it simple... Does anyone need single precision?
Yes, I do.
Actually, I made your suggestion a while ago but then changed my mind.
I use single precision float arrays for image processing applications. These images are very large, so doubling the array sizes with 8 byte variables would be a significant problem for me.
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

And another one:
If a person has 20.000.000 Dollars at your bank, that uses single-precision-floats and pays in 3 Dollars, he will have 20.000.004 Dollars immediately. Damn. But don't care, because when he will have then 70.000.000 dollars and pays in 3 dollars again, he will still have only 70.000.000 dollars. :P

Code: Select all

startmoney.f = 20000000
endmoney.f = startmoney + 3.0
Debug startmoney.f
Debug endmoney

startmoney.f = 70000000
endmoney.f = startmoney + 3.0
Debug startmoney.f
Debug endmoney


edit: The problem then would be that he could withdrawn 3 dollars from his 70.000.000 Dollar-account and will still have 70.000.000 . :roll:
%1>>1+1*1/1-1!1|1&1<<$1=1
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Froggerprogger wrote:edit: The problem then would be that he could withdrawn 3 dollars from his 70.000.000 Dollar-account and will still have 70.000.000 . :roll:
phew, what a money-machine :D
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Until now, i've noticed that PB in all its versions lacks in matter of floats. :(

Lets hope good news about it for next version, and now we can use the Rings bignum.dll. :)
Post Reply