Sign in Join

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

Mailing lists / fpc-pascal / 2011-11

Numbers longer than double-precision

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Ko Hashiguchi

Sirs,

Does Free Pascal have any options for operating on numbers longer than double-precision? If quad-precision is available, how can it be had? Can one find-obtain-buy libraries that can extend this ability to the Pascal language? Any info. you can post would be appreciated.

Thank you,

Ko Hashiguchi

Sven Barth
to Ko Hashiguchi
Ko Hashiguchi wrote 6 lines
Sirs, Does Free Pascal have any options for operating on numbers longer than double-precision? If quad-precision is available, how can it be had? Can one find-obtain-buy libraries that can extend this ability to the Pascal language? Any info. you can post would be appreciated.

Once the softfpu unit ($fpcdir/rtl/inc/softfpu.pp) is finished this will be possible. But AFAIK no one is currently working on that.

On x86 platforms you can also use the type "Extended" which is a 80-bit floating point type (it maps to "Double" on other platforms).

Regards,
Sven

Henry Vermaak
to Ko Hashiguchi: Does Free Pascal have any options for operating on numbers longer than double-precision?…
Ko Hashiguchi wrote 6 lines
Sirs, Does Free Pascal have any options for operating on numbers longer than double-precision? If quad-precision is available, how can it be had? Can one find-obtain-buy libraries that can extend this ability to the Pascal language? Any info. you can post would be appreciated.

You can use libgmp (LGPL licence). Freepascal has bindings for it and there are even some examples in packages/gmp.

Henry