[daip] array precision
Eric Greisen
egreisen at nrao.edu
Wed Jul 14 12:29:30 EDT 2004
P.E. Robinson writes:
> Designated Aips,
>
> I've hit a bit of a roadblock while writing an AIPS procedure to do
> factorial calculations. It seems arrays declared in a procedure are in
> floating precision, which cannot handle the stupidly large numbers that
> the factorial loop wants to give me. I would like to declare my arrays as
> double precision to handle the big numbers...but haven't figured out how
> to do this yet...
>
> The Cookbook and APROPO weren't forthcoming on this, which is why I'm
> bugging you. Any ideas?
>
All POPS adverbs are single-precision floating-point and there is
nothing (reasonable) that we can do about that. We do sometimes add 2
adverbs together to form a value, allowing greater precision but that
does not help in procedures.
Eric Greisen
More information about the Daip
mailing list