Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-02

How to find out the TFloatType digits

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

When using RTTI, I sometimes need to know the decimal precisions of a TFloatType. For example
ftSingle = 8
ftDouble = 16
...

Is there a simple way to get this?
If not: Is it possible to add an array or function to typinfo.pp with some info (e.g. bits for mantissa, bits for exponential, signed) about floattypes?

Regards,
Mattias