1.0d0 stored as integer?



I am trying to come up with an explanation for the following behavior. Setting a real*8 variable to 1.0d0 somehow creates a memory allocation in which only the single digit "1" is stored. Can anyone explain why?

Thanks.
-david

! gdb will not display all digits of the variable x1
! When run, the output is:
! x1: 1.00000000000000
! x2: 1.12345678901235
!
! But in gdb or totalview, only "1" is displayed:
! Local variables:
! x2: 1.12345678901235
! x1: 1

program test1

real*8 :: x1, x2

x1 = 1.0d0
x2 = 1.1234567890123456789d0

write(*,*) "x1: ", x1
write(*,*) "x2: ", x2

end program test1

.



Relevant Pages

  • Re: Development / Debugging tools - advice needed.
    ... >, registers, stack, memory dump, and coprocessor on the ... A graphical interface (or text mode ... > It also covers up the disassembler output of GDB. ... there's the "display" command to make gdb show stuff in ...
    (comp.os.linux.development.system)
  • Re: Xcode debugger and C++ references
    ... _someData) - it prints out both the reference address and the value. ... then I wonder why Xcode doesn't pick that up and display ... Resorting to gdb will work, ... if Xcode displayed the value. ...
    (comp.sys.mac.programmer.help)
  • Design of lookup table
    ... I have a lookup table containing single digit, double digit, and alpha characters. ... I want the combo box to display the information in the sequence that I determine and not sorted alphanumerically. ...
    (microsoft.public.access.tablesdbdesign)
  • Time entered (and handled as data) in simple minutes and seconds.
    ... Using Excel 2003. ... How can I get Excel to display and handle entries for duration in minutes ... single digit minutes and ...
    (microsoft.public.excel)
  • Debug memory accesses
    ... I use gdb to debug my programs. ... With print *ADDRESS) I can display the value ... modified the memory area specified by ADDRESS? ...
    (comp.unix.programmer)