<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font face="Arial">Have a look at
        <a class="moz-txt-link-freetext" href="http://www.wolfgang-ehrhardt.de/">http://www.wolfgang-ehrhardt.de/</a></font><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 2017-07-11 6:05 AM, <a class="moz-txt-link-abbreviated" href="mailto:noreply@z505.com">noreply@z505.com</a>
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:7bcdea80e4dee75a03adff4921dce0b8@z505.com">On 2017-07-07
      17:08, Bart wrote:
      <br>
      <blockquote type="cite">On 7/7/17, <a class="moz-txt-link-abbreviated" href="mailto:noreply@z505.com">noreply@z505.com</a>
        <a class="moz-txt-link-rfc2396E" href="mailto:noreply@z505.com"><noreply@z505.com></a> wrote:
        <br>
        <br>
        <blockquote type="cite">For integers beyond 64 bit, or even
          beyond 32 bit on a 64 bit machine,
          <br>
          why can't the math be broken down into peices the way a human
          does it on
          <br>
          paper, and then theoretically any number can be added and
          subtracted,
          <br>
          even if it is beyond 32/64 bit?
          <br>
          <br>
          Example:
          <br>
          <br>
          type TSuperLargeInt = string;
          <br>
          <br>
          var
          <br>
             i, j: TSuperLargeInt;
          <br>
             output: TSuperLargeInt;
          <br>
          begin
          <br>
             i := '100000000000000000009';
          <br>
             j := '100000000000000000001';
          <br>
             output := AddLargeInts(i,j);
          <br>
             writeln(output);
          <br>
          end.
          <br>
        </blockquote>
        <br>
        <a class="moz-txt-link-freetext" href="http://svn.code.sf.net/p/flyingsheep/code/trunk/wtf/ncalc.pp">http://svn.code.sf.net/p/flyingsheep/code/trunk/wtf/ncalc.pp</a>
        does exactly that
        <br>
        (all dependenies are also found at
        <br>
        <a class="moz-txt-link-freetext" href="http://svn.code.sf.net/p/flyingsheep/code/trunk/wtf">http://svn.code.sf.net/p/flyingsheep/code/trunk/wtf</a>).
        <br>
      </blockquote>
      ...
      <br>
      <br>
      <blockquote type="cite">It's not lightning fast, but there is room
        for optimization I guess.
        <br>
        <br>
        Bart
        <br>
      </blockquote>
      <br>
      I knew someone had already invented this!
      <br>
      Any idea if it does square roots, and, decimal point numbers too..
      <br>
      <br>
      Or, what math can it "not" do.. things like sin/tan/cos, or
      strange maths..
      <br>
      <br>
      Probably a complex question requiring a complex answer
      <br>
      <br>
      _______________________________________________
      <br>
      fpc-pascal maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
    </blockquote>
    <br>
  </body>
</html>