Sign in Join

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

Mailing lists / fpc-pascal / 2001-10

really big integers

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Bernhard Steffen

Hi there,

I'm looking for pascal code to handle really big integers, like 128 bit or more. I want to do +, -, *, DIV and MOD ops on them. Does anybody know routines for this?

Thanks, Bernhard

Michael Van Canneyt
to Bernhard Steffen
Bernhard Steffen wrote 5 lines
Hi there, I'm looking for pascal code to handle really big integers, like 128 bit or more. I want to do +, -, *, DIV and MOD ops on them. Does anybody know routines for this?

Look on the contributed units page, I think there is a package called 'mp' which allows arbitrary precision calculation. It even supports operator overloading, so *,/,+ and - retain their meaning.

Michael.

Bernhard Steffen
to Bernhard Steffen: I'm looking for pascal code to handle really big integers, like 128 bit or more. I want…

Hi Michael,

Michael Van Canneyt wrote 8 lines
> Hi there, > I'm looking for pascal code to handle really big integers, like 128 > bit or more. I want to do +, -, *, DIV and MOD ops on them. Does > anybody know routines for this? Look on the contributed units page, I think there is a package called 'mp' which allows arbitrary precision calculation. It even supports operator overloading, so *,/,+ and - retain their meaning. Michael.

thanks for the link. I found mpcalc & gint and will give it a try.

Bernhard