Viewing Double Precision reals as Integers
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 28 articles for 0.022 sec
Re: Viewing Double Precision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: Dick Hendrickson
Date: Jul 26, 2006 09:35

... a variable of type default real is partially associated with a ... not become undefined when the real variable becomes defined and the ... totally associated entities of double precision real type become defined. When...EQUIVALENCE was also used to view arrays as different ranked objects...would be That is, integer :: i real :: x equivalence (i, x...
Show full article (4.36Kb) · Show article thread
Re: Viewing Double Precision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: Craig Powers
Date: Jul 26, 2006 09:16

...] become defined. When an entity of double precision real type becomes defined, all totally associated entities of double precision real type become defined. When an unspecified...whenever you define one you automatically undefine the other? That is, integer :: i real :: x equivalence (i, x) i=10 ! This causes x to become undefined...
Show full article (1.51Kb) · Show article thread
Re: Viewing Double Precision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: Gordon Sande
Date: Jul 25, 2006 16:43

... when a variable of type default real is partially associated with a ...does not become undefined when the real variable becomes defined and the ...all totally associated entities of double precision real type become defined. When an...really expect the value of the integer stashed in some register by the...to be updated because the associated real gets assigned into. Nope! You should...
Show full article (4.73Kb) · Show article thread
Re: Viewing Double Precision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: Steven G. Kargl
Date: Jul 25, 2006 16:18

... a variable of type default real is partially associated with a ... not become undefined when the real variable becomes defined and the...Your read statement caused the double precision variable to become defined...totally associated entities of double precision real type become defined. When...would be That is, integer :: i real :: x equivalence (i, x...
Show full article (3.71Kb) · Show article thread
Re: Viewing Double Precision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: Paul Van Delst
Date: Jul 25, 2006 15:56

...when a variable of type default real is partially associated with a ... not become undefined when the real variable becomes defined and the ... Your read statement caused the double precision variable to become defined.... totally associated entities of double precision real type become defined. When ... the other? That is, integer :: i real :: x equivalence (i, x)...
Show full article (3.02Kb) · Show article thread
Re: Viewing Double Precision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Jul 26, 2006 13:51

...type (or kind) through another. 1) For integer/real/double precision it would depend on the specific representations used by the machine. (sign...magnitude, ones complement, twos complement, and base for integers, and even more variables in the floating point representations allowed.) 2) For different sized integers it would depend on endianness. 3) As not...
Show full article (1.15Kb) · Show article thread
Re: Viewing Double Precision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: Dick Hendrickson
Date: Jul 26, 2006 09:38

... this applies to COMMON association as well as EQUIVALENCE association. In the original post the example was: >double precision r1 >common /doubint/ r1 >and another common elsewhere: >integer i1, i2 >common /doubint/ i1, i2 Defining r1 undefines i1 and i2. A standard confroming program can...
Show full article (1.15Kb) · Show article thread
Re: Viewing Double Precision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: Steven G. Kargl
Date: Jul 25, 2006 15:16

...when a variable of type default real is partially associated with a variable...does not become undefined when the real variable becomes defined and the real.... Your read statement caused the double precision variable to become defined. Thereby, i3 is technically undefined. The ...= i3(2) + 1000 ! <---**** change the integer values -- Steve http://troutmask.apl....
Show full article (1.70Kb) · Show article thread
Re: Viewing Double Precision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: ferrad
Date: Jul 25, 2006 13:37

.../ r1 and another common elsewhere: integer i1, i2 common /doubint/ i1, ... r1 always translate into valid integers in i1 and i2? Or are...is store them away in an integer array, retrieve them later back ...i2 which I can copy between integer variables, and then retrieve back ... test implicit none integer i3(2) double precision r1 common /doubint/...
Show full article (1.79Kb) · Show article thread
Re: Viewing Double Prescision reals as Integers     

Group: comp.lang.fortran · Group Profile · Search for Viewing Double Precision reals as Integers in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Jul 25, 2006 16:35

...: double precision r1 common /doubint/ r1 and another common elsewhere: integer i1, i2 common /doubint/ i1, i2 ...Or are there 'NaN' equivalents in the integer world? I believe the result is the...the size of a default real, and a double precision to be twice the size... of two-byte, two's complement integers you discuss, the maximum possible range ...
Show full article (2.47Kb) · Show article thread
1 · 2 · 3 · next