Solved

number accurency

Posted on 1998-11-09
3
506 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

756 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