[Implemented] Flags EditorGadget and double float

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
JoRo
User
User
Posts: 70
Joined: Sat May 10, 2003 2:03 pm
Location: Essen, Germany
Contact:

[Implemented] Flags EditorGadget and double float

Post by JoRo »

I was surprised to see, that in version 3.8 there are no flags for the editorgadget.

Double Float
I thought, it is not necessary to point to, I am really not the first. But until today, it is not possible to develop business application. They need doubles, for financial calculation.

Johannes
Berikco
Administrator
Administrator
Posts: 1330
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Re: Flags EditorGadget and double float

Post by Berikco »

JoRo wrote:I was surprised to see, that in version 3.8 there are no flags for the editorgadget.

Double Float
I thought, it is not necessary to point to, I am really not the first. But until today, it is not possible to develop business application. They need doubles, for financial calculation.

Johannes
The business applications i made never used floats or doubles in 19 years programming.

Always worked internaly with cents, and divided by 100 to display results.
This was always more accurate for my usage.
Could be different in your situation of course.
Berikco
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Doubles are more than needed, but not for business applications.
Scientific applications are in bad need of doubles, also some API Calls need or return doubles (Integers mostly).
Berikco
Administrator
Administrator
Posts: 1330
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

freedimension wrote:Doubles are more than needed, but not for business applications.
Scientific applications are in bad need of doubles, also some API Calls need or return doubles (Integers mostly).
Exactly my point :) Scientific applications, and some API calls of course, but i did never see a need to use in a financial app.
Berikco
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

and never for industrial appz.....
SPAMINATOR NR.1
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

Berikco wrote:
freedimension wrote:Doubles are more than needed, but not for business applications.
Scientific applications are in bad need of doubles, also some API Calls need or return doubles (Integers mostly).
Exactly my point :) Scientific applications, and some API calls of course, but i did never see a need to use in a financial app.
Rings wrote:and never for industrial appz.....
"Never" is a really strong word here guys :!:
It all depends on <i>which type</i> of financial or industrial application you're supposed to make. :)

-Lars

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

LarsG wrote:It all depends on <i>which type</i> of financial or industrial application you're supposed to make. :)
An exact and reliable one !?
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

freedimension wrote:
LarsG wrote:It all depends on <i>which type</i> of financial or industrial application you're supposed to make. :)
An exact and reliable one !?
That could be it.. yes! :lol:

-Lars

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
JoRo
User
User
Posts: 70
Joined: Sat May 10, 2003 2:03 pm
Location: Essen, Germany
Contact:

Post by JoRo »

Not sure, what is the right in english, selling/building houses, facilcity management, financial calculations. I was teacher for this, and my pupils had to buy an pocket calculator with 12 numbers display or more for school, not for business.
Great numbers are reached soon, what are 10.000.000 for a calculation for an area with 50 one-family houses, or the calculation for a fond of an market centrum?

By the way, over the half of the software, which is in use in this market, is not able to calculate right. that means a lot of trouble for the users. The only one I know here in germany with total acceptanz from the tax office is "Datev", some others specialized like "SAP" too.

I really cannot understand, what sens this restriction makes in PB.

I also would like to continue my mathematical work on fractals, espacially the mandelbrotmenge, but not with this floats.

Johannes
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

My job is to build industrial software (since 1992) and i know all pro's and cons of using floats/doubles in software.if you can avoid the use of floats then do it.Dealing with Longs is the easiest way as Berikco describes.

btw, wishing doubles is also an old post from me in autumm 2001 when i began with PB....., and is already on my wishlist for Scientific appz ....
JoRo wrote:.....I was teacher for this.....
hehe, teacher sucks everytime ...... :)
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 »

I can see pro's of existence of double precision and extended double precision floats, or even 128bit precision numbers in PB.
But the only "con" i can see is the lower speed of calculations in front of single precision ones.
Road Runner
User
User
Posts: 48
Joined: Tue Oct 07, 2003 3:10 pm

Post by Road Runner »

Psychophanta wrote:But the only "con" i can see is the lower speed of calculations in front of single precision ones.
The FPU does everything in extended precision anyway, there is no speed difference.
mikew
New User
New User
Posts: 2
Joined: Mon Oct 20, 2003 9:52 pm

Double Precision Float

Post by mikew »

It was just yesterday when a bootstrap algorithm diverged because of a precision problem of the floats in Purebasic. As a scientist, I would urgently need the double precision floats. :!:
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I don't think anyone is arguing that they're not needed - just that they're not needed for money calculations!

Yes, we do need several variables types not currently in PB!
-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
JoRo
User
User
Posts: 70
Joined: Sat May 10, 2003 2:03 pm
Location: Essen, Germany
Contact:

Post by JoRo »

May be, you have convinced me, that in financial calculation the way with integers is the better one. Yes, there a less problems.
That does not affect the necessarity of doubles, fo rintergs and floats.

But no one interested in the editorgadget? I have just problems to get a second click recognoized. I have to use the Api GetFocus_ inside my WaitwindowEvent, and then filter out, all the events that can occur. I am not able to set some styles, which are not changeable after creating. The functions for the Editorgadget are stringorientated, but it is typical for an richedit to contain more then 64K text. It needs string independent functions, like those of the Api.

Johannes
Post Reply