Lahey Support
08-15-2003, 01:19 AM
I have not checked the code in detail, but I would
suggest that 10**10 is calculated with integer math
and overflows, while 10.**10 is calculated with real
number math and behaves according to the original
expectations.
Laurent Bilodeau
[address removed] wrote:
>
> In a message dated 1/23/99 12:45:36 AM Pacific Standard Time,
> [address removed] writes:
>
> << a = .123456
> a = a*10**10
> WRITE(*,*) a
> ...
>
> stop
> end program test
>
> The code replied me a strange # to a as: 0.174081E+09 >>
> 10**10 must be overflowing. Did you mean 10D0**10?
suggest that 10**10 is calculated with integer math
and overflows, while 10.**10 is calculated with real
number math and behaves according to the original
expectations.
Laurent Bilodeau
[address removed] wrote:
>
> In a message dated 1/23/99 12:45:36 AM Pacific Standard Time,
> [address removed] writes:
>
> << a = .123456
> a = a*10**10
> WRITE(*,*) a
> ...
>
> stop
> end program test
>
> The code replied me a strange # to a as: 0.174081E+09 >>
> 10**10 must be overflowing. Did you mean 10D0**10?