Solved

number accurency

Posted on 1998-11-09
3
502 Views
Last Modified: 2008-03-17
hi, how can i limit number accurency , for example i have floating point number  (LETS SAY dOUBLE TYPE)
and i want that the numbers will be just 3digit after the floating point
so number like this  2.234789753453e-16 will be consider as zero .
and from the oposite number like 4.456 will stay in his Current Value


0
Comment
Question by:asi
3 Comments
 
LVL 1

Expert Comment

by:zac
ID: 1346280
The easiest and most simple way is to use a mask edit if it is non DB data or to set the Displayformat and EditFormat of the field if it is a DB item.

The format you'll probably want is something like:

#.000

I hope this helps.

cheers,

Zac
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 10 total points
ID: 1346281
showmessage(FormatFloat('#,##0.###', 2.234789753453e-16));
0
 

Author Comment

by:asi
ID: 1346282
as always ... Ronit
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using FastMM4... should I enable MMX option? 9 75
add combobox item based on numbers 9 119
HTML text in the body of an email (delphi code) 12 94
How to debug For loops? 3 45
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now