Solved

number accurency

Posted on 1998-11-09
3
508 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

726 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