Fortran: handling integer values of size: ~700000000000

后端 未结 6 544
忘掉有多难
忘掉有多难 2021-01-05 10:52

Currently I\'m brushing up on my Fortran95 knowledge (don\'t ask why)...

I\'m running in to a problem though. How does one handle large integers, eg. the size of: ~7

6条回答
  •  礼貌的吻别
    2021-01-05 11:02

    If you are using it as a loop control variable, but aren't using the integer directly (which I guess you can't be, as you can't declare an array larger than the largest index representable, right?), then I guess the thing to do is divide that puppy by something like 100000 and nest its loop in another loop that iterates that many times.

提交回复
热议问题