Solved

# a question about the extended type

Posted on 2005-04-26
165 Views
I need to work with bad numbers like this 34564563645560.0600500000400001
i read in the delphi help that the extended type allows for 20 siginificant digits.
What is meant by significant digits ?is it the float part of the number or the number all digits including the integer part?
thanks
0
Question by:oalawna

Author Comment

Ok I think it mean all numbers starting from the leftmost zero.
Solet me change the question.
what type should i use with such numbers?
0

LVL 15

Expert Comment

Significant digits are all the numbers.

The type is double.
0

Author Comment

mike thanks. but the numbers i am using contain more than 20 significant digits.
I will use hexadecimal if there is no solution.
thanks
0

LVL 15

Accepted Solution

From the delphi help

The double keyword designates a 64-bit floating-point number.

Type      Range                                      Significant digits         Size in bytes
Double      5.0 x 10^-324 .. 1.7 x 10^308      15-16                         8
Extended      3.6 x 10^-4951 .. 1.1 x 10^4932      19-20                         10

Most poeple use double, though extended will allow you slightly more digits.
Extended though you usually find it will change the value from say 34567.891234 to 3.4567891234 x 10^4
0

LVL 15

Expert Comment

Then I would suggest using hexidecimal
0

Author Comment

i did not notice ^308

thank you
0

Author Comment

I will use hex
0

## Featured Post

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…