| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I guess this has been asked before, but I'll ask it anyway. The largest integer types and real types for BP7 are Longint and Comp respectively, as I recall. They hold big numbers, but can anyone write a unit that will supply data types which hold even BIGGER numbers? say, 128 bit or 256 bit numbers? Are there such units or resources available? Thanks in advance. |
|
#2
| |||
| |||
| On 2008-05-23, Patrick D. Rockwell <prockwell@thegrid.net> wrote: > The largest integer types and real types for BP7 are Longint and Comp > respectively, as I recall. comp is an integer managed by the FPU and a strange beast. Extended is the largest "real" floating point type. > They hold big numbers, but can anyone write a unit that will supply data > types which hold even BIGGER numbers? say, 128 bit or 256 bit numbers? Are > there such units or resources available? Thanks in advance. Yes that is possible, and IIRC there are such units in SWAG |
|
#3
| |||
| |||
| On Thu, 22 May 2008 20:38:20 -0700 (PDT), "Patrick D. Rockwell" <prockwell@thegrid.net> wrote: >I guess this has been asked before, but I'll ask it anyway. > >The largest integer types and real types for BP7 are Longint and Comp >respectively, as I recall. They hold big numbers, but can anyone write >a unit >that will supply data types which hold even BIGGER numbers? say, 128 >bit or >256 bit numbers? Are there such units or resources available? Thanks >in advance. You can use my open source Pascal code for multi precision integer, rational, and floating point arithmetic: <http://home.netsurf.de/wolfgang.ehrhardt/misc_en.html#mparith> Direct download link: <http://home.netsurf.de/wolfgang.ehrhardt/mpa_2008-02-03.zip> Hope that helps Wolfgang -- In order to e-mail me a reply to this message, you will have to remove PLEASE.REMOVE from the address shown in the header or get it from http://home.netsurf.de/wolfgang.ehrhardt (Free AES, CRC, Hash, and HMAC source for Pascal/Delphi) |
|
#4
| |||
| |||
| In comp.lang.pascal.borland message <5c0ee7da-110c-48c6-948f-de438f81615 8@b9g2000prh.googlegroups.com>, Thu, 22 May 2008 20:38:20, Patrick D. Rockwell <prockwell@thegrid.net> posted: >I guess this has been asked before, but I'll ask it anyway. > >The largest integer types and real types for BP7 are Longint and Comp >respectively, as I recall. They hold big numbers, but can anyone write >a unit >that will supply data types which hold even BIGGER numbers? say, 128 >bit or >256 bit numbers? Are there such units or resources available? Thanks >in advance. Program/unit longcalc.pas will handle integers up to 16^65500 plus in BP7; for more, use Delphi. -- (c) John Stockton, nr London UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME. <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links; <URL:http://www.merlyn.demon.co.uk/clpb-faq.txt> RAH Prins : c.l.p.b mFAQ; <URL:ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip> Timo Salmi's Turbo Pascal FAQ. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.