Thanks to all of You !
Even though none of your answers could do the complete job You gave me very good hints ! Thank You very much !!
The routine that I will try now is a mixture of some of Your answers :
For n > 0 :
FloatToStr( Trunc(n*1000 + 0.5 + 0.00000001) / 1000 )
For n < 0 ...
Hi, Steve !
Would those old Win 3.1 - inifiles do the job ? There is a Delphi unit inifiles.pas with all the functions you needed to access contents of *.ini-files.
Hi, Solve !
I would like to have a look at your calculator programm ! Especially I am interested in the way you deal with operator priorities !?!? Can you send me a copy of your source code, please ?
Hi, MF !
I believe that monitoring all the user's actions like Inserting, Deleting, Replacing and so on would lead to a really huge event handler.
An easier way to detect a change to the memo text is to make a copy of the initial memo text before you let the user edit the memo. If your...
I recently found out that FloatToStrF(Value, Decplaces) sometimes makes mistakes !!
I wanted to have 23.0005 to be rounded to 3 decimal places and put into a string. And I got '23.000' !?!?
When I tried the same with 12.0005 I got '12.001' !!!
I could find out that 23.0005 was not really...
Hi Steve !
I've had this problem too sometimes. Last week again. I am not sure but I think the reason is a change in the installed packages or components :
The week before last week the datamodule was edited by one of my collegues. That guy had installed a new package or component that I did...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.