Re: double confusion
- From: "Julian Bessenroth" <jbusenet@xxxxxx>
- Date: 17 Jul 2006 03:25:22 -0700
michael schrieb:
Declare
double precision r
in the calling program.
TNX, it's working, but (It seems to be quite a while since I wrote
frotran77 the last time) this is not similar to moth other languages.
Why do I have to declare r wihin the calling program? I've already
declared r as double precision in the function definition. It's more
clear to me to declare c and a,b but r ... ?
What logic is behind that? It's unlike other languages, isn't is?
TNX
Julian
.
Relevant Pages
- Re: double confusion
... Why do I have to declare r wihin the calling program? ... declared r as double precision in the function definition. ... (comp.lang.fortran) - Re: increasing width
... which I get every time I want to declare real. ... used to declare single or double precision variables. ... easily support more than one "kind" of single precision variable. ... have at least 13 digits of precision, ... (comp.lang.fortran) - Re: increasing width
... Some fellow over in sci.math.num-analysis tells me I can get at least 6 more sig figs, if instead of declaring as type real, I declare as real. ... used to declare single or double precision variables. ... easily support more than one "kind" of single precision variable. ... have at least 13 digits of precision, ... (comp.lang.fortran) - Re: double confusion
... Modules that came in in Fortran 90, where you can just declare things "once at ... precision, but not for integer or real ... ... This reflects the implicit Typing of the languages - in C functions return ... Thus you must declare all double precision variables. ... (comp.lang.fortran) - lang effort: type conversions
... the lang will be dynamically typed with a prototype ... long, either a fixnum or an on-heap object, with undefined precision (for ... will declare a mutable one. ... (comp.lang.misc) |
|