New Data Types??

This is a discussion on New Data Types?? within the Pascal forums in Programming Languages category; 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....

Go Back   Application Development Forum > Programming Languages > Pascal

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-22-2008, 11:38 PM
Patrick D. Rockwell
Guest
 
Default New Data Types??

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.



Reply With Quote
  #2  
Old 05-23-2008, 02:37 AM
Marco van de Voort
Guest
 
Default Re: New Data Types??

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
Reply With Quote
  #3  
Old 05-23-2008, 02:16 PM
Wolfgang Ehrhardt
Guest
 
Default Re: New Data Types??

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)
Reply With Quote
  #4  
Old 05-23-2008, 06:41 PM
Dr J R Stockton
Guest
 
Default Re: New Data Types??

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.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 11:56 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.